From 9616e770f32b296ee857872fb2fa384f6fcd878d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 20 Jul 2018 05:36:55 +0000 Subject: [PATCH] Fixes some notice --- mastodoncustomemojis/mastodoncustomemojis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodoncustomemojis/mastodoncustomemojis.php b/mastodoncustomemojis/mastodoncustomemojis.php index 71b6db5c..93d0ba65 100644 --- a/mastodoncustomemojis/mastodoncustomemojis.php +++ b/mastodoncustomemojis/mastodoncustomemojis.php @@ -54,7 +54,7 @@ HTML; function mastodoncustomemojis_put_item_in_cache(App $a, array &$hook_data) { // 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; }