From: Michael Date: Tue, 2 Oct 2018 15:28:31 +0000 (+0000) Subject: Activate ActivityPub for Mastodon Custom Emojis X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee13b836d8726be400bc08c704687d3b98cb7d91;p=friendica-addons.git Activate ActivityPub for Mastodon Custom Emojis --- diff --git a/mastodoncustomemojis/mastodoncustomemojis.php b/mastodoncustomemojis/mastodoncustomemojis.php index 1acd924a..5636af64 100644 --- a/mastodoncustomemojis/mastodoncustomemojis.php +++ b/mastodoncustomemojis/mastodoncustomemojis.php @@ -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; }