From bc9c83b6c33d460a574fbeb764c23bfbe941b4c0 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 23 Jan 2025 18:55:52 +0000 Subject: implement blocking users it doesn't work yet for notifications! but i think i got it in most other places --- routes/notifications.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes/notifications.php') diff --git a/routes/notifications.php b/routes/notifications.php index 05fb89d..c7b9414 100644 --- a/routes/notifications.php +++ b/routes/notifications.php @@ -15,6 +15,8 @@ Router::getInstance()->mount('/notifications/partial', function (array $args) { foreach ($notifs as $notif) { $notif = $notif->toNotifyable(); + if ($notif == null) + continue; render_template('notification', [ 'title' => $notif->getNotificationTitle(), 'body' => $notif->getNotificationBody(), -- cgit v1.3