mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 00:03:46 +00:00
Activate ActivityPub for Mastodon Custom Emojis
This commit is contained in:
parent
1dc7114bae
commit
ee13b836d8
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ HTML;
|
|||
|
||||
function mastodoncustomemojis_put_item_in_cache(App $a, array &$hook_data)
|
||||
{
|
||||
// Mastodon uses OStatus, skipping other network protocols
|
||||
if (empty($hook_data['item']['author-link']) || ($hook_data['item']['network'] != Protocol::OSTATUS)) {
|
||||
// Mastodon uses OStatus and ActivityPub, skipping other network protocols
|
||||
if (empty($hook_data['item']['author-link']) || !in_array($hook_data['item']['network'], [Protocol::OSTATUS, Protocol::ACTIVITYPUB])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue