Ensure Tag::getByURIId parameter value in OStatus;;entryFooter
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-623701081 - $item['uri-id'] isn't present for follow entry pseudo-items
This commit is contained in:
parent
05cac4c186
commit
340bc57952
1 changed files with 3 additions and 5 deletions
|
@ -2081,12 +2081,10 @@ 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)
|
||||||
$newmentions = [];
|
$newmentions = [];
|
||||||
|
|
Loading…
Reference in a new issue