]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Feed.php
Move mod/ping to module class
[friendica.git] / src / Module / Feed.php
index 788f9da7c2587650c99f4fa0fa12a11291cea230..3a1246028b4224c0f306701b723a259d177c4c22 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
  *
@@ -41,7 +41,7 @@ use Friendica\Protocol\Feed as ProtocolFeed;
  */
 class Feed extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $a = DI::app();
 
@@ -68,7 +68,7 @@ class Feed extends BaseModule
                }
 
                header("Content-type: application/atom+xml; charset=utf-8");
-               echo ProtocolFeed::atom($parameters['nickname'], $last_update, 10, $type, $nocache, true);
+               echo ProtocolFeed::atom($this->parameters['nickname'], $last_update, 10, $type, $nocache, true);
                exit();
        }
 }