]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Notifications/Notification.php
Update src/Model/GServer.php
[friendica.git] / src / Module / Notifications / Notification.php
index 486054f98f2461ba40222193f4c71b1b2eaef2cc..d72e3c2502709ddad804d67d11d6e2da8dff49af 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -42,7 +42,7 @@ class Notification extends BaseModule
         * @throws \ImagickException
         * @throws \Exception
         */
-       public function post()
+       protected function post(array $request = [])
        {
                if (!local_user()) {
                        throw new HTTPException\UnauthorizedException(DI::l10n()->t('Permission denied.'));
@@ -73,7 +73,7 @@ class Notification extends BaseModule
         *
         * @throws HTTPException\UnauthorizedException
         */
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
                if (!local_user()) {
                        throw new HTTPException\UnauthorizedException(DI::l10n()->t('Permission denied.'));
@@ -101,7 +101,7 @@ class Notification extends BaseModule
         * @throws HTTPException\InternalServerErrorException
         * @throws \Exception
         */
-       public function content(): string
+       protected function content(array $request = []): string
        {
                if (!local_user()) {
                        notice(DI::l10n()->t('You must be logged in to show this page.'));