Merge pull request #651 from annando/notices

Fixes some notice
This commit is contained in:
Tobias Diekershoff 2018-07-20 12:49:55 +02:00 committed by GitHub
commit a4c4bbc7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ 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, skipping other network protocols
if ($hook_data['item']['network'] != Protocol::OSTATUS) { if (empty($hook_data['item']['author-link']) || ($hook_data['item']['network'] != Protocol::OSTATUS)) {
return; return;
} }