From ee13b836d8726be400bc08c704687d3b98cb7d91 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 Oct 2018 15:28:31 +0000 Subject: [PATCH] Activate ActivityPub for Mastodon Custom Emojis --- mastodoncustomemojis/mastodoncustomemojis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }