mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Extract emojis into mastodon api only for local posts
This commit is contained in:
parent
9bf7529dda
commit
917b801eb6
1 changed files with 5 additions and 2 deletions
|
@ -288,8 +288,11 @@ class Status extends BaseFactory
|
|||
}
|
||||
}
|
||||
|
||||
$used_smilies = Smilies::extractUsedSmilies($item['body'] ?: $item['raw-body']);
|
||||
$emojis = $this->mstdnEmojiFactory->createCollectionFromArray($used_smilies)->getArrayCopy(true);
|
||||
$emojis = null;
|
||||
if (DI::baseUrl()->isLocalUrl($item['uri'])) {
|
||||
$used_smilies = Smilies::extractUsedSmilies($item['body'] ?: $item['raw-body']);
|
||||
$emojis = $this->mstdnEmojiFactory->createCollectionFromArray($used_smilies)->getArrayCopy(true);
|
||||
}
|
||||
|
||||
if ($is_reshare) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue