diff --git a/Iceshrimp.Backend/Controllers/Mastodon/NotificationController.cs b/Iceshrimp.Backend/Controllers/Mastodon/NotificationController.cs index 8c6ee697..e05113f4 100644 --- a/Iceshrimp.Backend/Controllers/Mastodon/NotificationController.cs +++ b/Iceshrimp.Backend/Controllers/Mastodon/NotificationController.cs @@ -39,8 +39,14 @@ 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); }