]> git.mxchange.org Git - friendica-addons.git/commitdiff
Activate ActivityPub for Mastodon Custom Emojis
authorMichael <heluecht@pirati.ca>
Tue, 2 Oct 2018 15:28:31 +0000 (15:28 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 2 Oct 2018 15:28:31 +0000 (15:28 +0000)
mastodoncustomemojis/mastodoncustomemojis.php

index 1acd924afd73f017e7bb44a5bb781f64ace8e715..5636af64d918f3745bf0556d37c4d6166be129f8 100644 (file)
@@ -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;
        }