diff options
| author | winter | 2025-01-23 18:55:52 +0000 |
|---|---|---|
| committer | winter | 2025-01-23 18:55:52 +0000 |
| commit | cc7cdfdd5fa49abffb5fd0e852db66bf6fe2cf14 (patch) | |
| tree | 0f1c0f148c09d572a990bd8317c2f5b135932744 /routes/notifications.php | |
| parent | ddccaf16f39a4bf710266edc389fcde124e7ef56 (diff) | |
implement blocking users
it doesn't work yet for notifications! but i think i got it in most other places
Diffstat (limited to 'routes/notifications.php')
| -rw-r--r-- | routes/notifications.php | 2 |
1 files changed, 2 insertions, 0 deletions
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(), |
