]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/DFRN/Poll.php
Add required notify field to contacts in API test fixture
[friendica.git] / src / Module / DFRN / Poll.php
index 9a2ab4b69f24d1ac75320527b45c6a9acc9e8191..65a3448fb4012b205498a8e7bc16f781b4c222f9 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
  *
@@ -29,11 +29,11 @@ use Friendica\Protocol\OStatus;
  */
 class Poll extends BaseModule
 {
-       public static function rawContent()
+       protected function rawContent(array $request = [])
        {
                header("Content-type: application/atom+xml");
                $last_update = $_GET['last_update'] ?? '';
-               echo OStatus::feed(static::$parameters['nickname'], $last_update, 10);
+               echo OStatus::feed($this->parameters['nickname'], $last_update, 10);
                exit();
        }
 }