Merge pull request #742 from annando/ap

Activate ActivityPub for Mastodon Custom Emojis
This commit is contained in:
Hypolite Petovan 2018-10-02 11:42:52 -04:00 committed by GitHub
commit cac6cbc235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ HTML;
function mastodoncustomemojis_put_item_in_cache(App $a, array &$hook_data) function mastodoncustomemojis_put_item_in_cache(App $a, array &$hook_data)
{ {
// Mastodon uses OStatus, skipping other network protocols // Mastodon uses OStatus and ActivityPub, skipping other network protocols
if (empty($hook_data['item']['author-link']) || ($hook_data['item']['network'] != Protocol::OSTATUS)) { if (empty($hook_data['item']['author-link']) || !in_array($hook_data['item']['network'], [Protocol::OSTATUS, Protocol::ACTIVITYPUB])) {
return; return;
} }