mirror of
https://github.com/friendica/friendica
synced 2025-05-22 03:04:12 +02:00
Changes
- added type-hints - added some documentation - added default: block for unknown 'rel' value - changed return type void to empty array
This commit is contained in:
parent
dfa95ea58d
commit
abd0d9f3fd
5 changed files with 527 additions and 466 deletions
|
@ -1040,7 +1040,7 @@ class Feed
|
|||
$attributes = ["href" => $owner["url"], "rel" => "alternate", "type" => "text/html"];
|
||||
XML::addElement($doc, $root, "link", "", $attributes);
|
||||
|
||||
OStatus::hublinks($doc, $root, $owner["nick"]);
|
||||
OStatus::addHubLink($doc, $root, $owner["nick"]);
|
||||
|
||||
$attributes = ["href" => DI::baseUrl() . $selfUri, "rel" => "self", "type" => "application/atom+xml"];
|
||||
XML::addElement($doc, $root, "link", "", $attributes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue