mirror of
https://github.com/friendica/friendica
synced 2025-04-22 02:30:11 +00:00
Atom feed generation is moved to the feed class
This commit is contained in:
parent
b68119cd8c
commit
ecf6018b89
3 changed files with 518 additions and 176 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue