Atom feed generation is moved to the feed class

This commit is contained in:
Michael 2020-07-17 04:40:20 +00:00
parent b68119cd8c
commit ecf6018b89
3 changed files with 518 additions and 176 deletions

View file

@ -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();
}
}