From: Michael Date: Fri, 20 Jul 2018 05:36:55 +0000 (+0000) Subject: Fixes some notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9616e770f32b296ee857872fb2fa384f6fcd878d;p=friendica-addons.git Fixes some notice --- 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; }