]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Notifications/Notification.php
Use router parameters in Admin modules
[friendica.git] / src / Module / Notifications / Notification.php
index 2d0c7c97484e846b617212a4db862791b48e9681..2dc008248e703d2d2f5757a9dbe00a212f356807 100644 (file)
@@ -100,14 +100,14 @@ class Notification extends BaseModule
        public static function content(array $parameters = [])
        {
                if (!local_user()) {
-                       notice(DI::l10n()->t('Permission denied.'));
+                       notice(DI::l10n()->t('You must be logged in to show this page.'));
                        return Login::form();
                }
 
                $request_id = $parameters['id'] ?? false;
 
                if ($request_id) {
-                       $notify = DI::notify()->getByID($request_id);
+                       $notify = DI::notify()->getByID($request_id, local_user());
                        DI::notify()->setSeen(true, $notify);
 
                        if (!empty($notify->link)) {