]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Feed.php
Prevent settings/userexport to be used by anonymous users
[friendica.git] / src / Module / Feed.php
index ff0abdb2ab31d997a2dde3b725629a9fddf5814a..2a3c6de5a7a31f77e00b73f7fee1ceb69ace241f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -23,7 +23,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\DI;
-use Friendica\Protocol\OStatus;
+use Friendica\Protocol\Feed as ProtocolFeed;
 
 /**
  * Provides public Atom feeds
@@ -75,7 +75,7 @@ class Feed extends BaseModule
                // @TODO: Replace with parameter from router
                $nickname = $a->argv[1];
                header("Content-type: application/atom+xml; charset=utf-8");
-               echo OStatus::feed($nickname, $last_update, 10, $type, $nocache, true);
+               echo ProtocolFeed::atom($nickname, $last_update, 10, $type, $nocache, true);
                exit();
        }
 }