Some more invalid feed elements
This commit is contained in:
parent
e5a336ff77
commit
0100e0df84
|
@ -2095,6 +2095,7 @@ class OStatus
|
|||
$mentioned[$tag['url']] = $tag['url'];
|
||||
}
|
||||
|
||||
if (!$feed_mode) {
|
||||
// Make sure that mentions are accepted (GNU Social has problems with mixing HTTP and HTTPS)
|
||||
$newmentions = [];
|
||||
foreach ($mentioned as $mention) {
|
||||
|
@ -2130,7 +2131,7 @@ class OStatus
|
|||
]);
|
||||
}
|
||||
|
||||
if (($item['private'] != Item::PRIVATE) && !$feed_mode) {
|
||||
if ($item['private'] != Item::PRIVATE) {
|
||||
XML::addElement($doc, $entry, "link", "", ["rel" => "ostatus:attention",
|
||||
"href" => "http://activityschema.org/collection/public"]);
|
||||
XML::addElement($doc, $entry, "link", "", ["rel" => "mentioned",
|
||||
|
@ -2138,6 +2139,7 @@ class OStatus
|
|||
"href" => "http://activityschema.org/collection/public"]);
|
||||
XML::addElement($doc, $entry, "mastodon:scope", "public");
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
if ($tag['type'] == Tag::HASHTAG) {
|
||||
|
@ -2147,7 +2149,7 @@ class OStatus
|
|||
|
||||
self::getAttachment($doc, $entry, $item);
|
||||
|
||||
if ($complete && ($item["id"] > 0)) {
|
||||
if (!$feed_mode && $complete && ($item["id"] > 0)) {
|
||||
$app = $item["app"];
|
||||
if ($app == "") {
|
||||
$app = "web";
|
||||
|
@ -2163,11 +2165,9 @@ class OStatus
|
|||
XML::addElement($doc, $entry, "georss:point", $item["coord"]);
|
||||
}
|
||||
|
||||
if (!$feed_mode) {
|
||||
XML::addElement($doc, $entry, "statusnet:notice_info", "", $attributes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the XML feed for a given nickname
|
||||
|
|
Loading…
Reference in a new issue