Merge pull request #8579 from MrPetovan/bug/fatal-errors
Ensure Tag::getByURIId parameter value in OStatus::entryFooter
This commit is contained in:
commit
64069f8bd6
|
@ -2081,11 +2081,9 @@ class OStatus
|
||||||
XML::addElement($doc, $entry, "ostatus:conversation", $conversation_uri, $attributes);
|
XML::addElement($doc, $entry, "ostatus:conversation", $conversation_uri, $attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tags = Tag::getByURIId($item['uri-id']);
|
// uri-id isn't present for follow entry pseudo-items
|
||||||
if (count($tags)) {
|
foreach (Tag::getByURIId($item['uri-id'] ?? 0) as $tag) {
|
||||||
foreach ($tags as $tag) {
|
$mentioned[$tag['url']] = $tag['url'];
|
||||||
$mentioned[$tag['url']] = $tag['url'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure that mentions are accepted (GNU Social has problems with mixing HTTP and HTTPS)
|
// Make sure that mentions are accepted (GNU Social has problems with mixing HTTP and HTTPS)
|
||||||
|
|
Loading…
Reference in a new issue