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 = null;
|
||||||
$emojis = $this->mstdnEmojiFactory->createCollectionFromArray($used_smilies)->getArrayCopy(true);
|
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) {
|
if ($is_reshare) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue