[backend/masto-client] Add visibility filters in NotificationController (ISH-45)
This commit is contained in:
parent
85073fc871
commit
2cfbc305fc
1 changed files with 6 additions and 0 deletions
|
@ -39,9 +39,15 @@ public class NotificationController(DatabaseContext db, NotificationRenderer not
|
|||
|| p.Type == NotificationType.Reaction
|
||||
|| p.Type == NotificationType.PollEnded
|
||||
|| p.Type == NotificationType.FollowRequestReceived)
|
||||
.EnsureNoteVisibilityFor(p => p.Note, user)
|
||||
.FilterBlocked(p => p.Notifier, user)
|
||||
.FilterBlocked(p => p.Note, user)
|
||||
.Paginate(query, ControllerContext)
|
||||
.RenderAllForMastodonAsync(notificationRenderer);
|
||||
|
||||
//TODO: handle mutes
|
||||
//TODO: handle reply/renote visibility
|
||||
|
||||
return Ok(res);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue