]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fixes some notice
authorMichael <heluecht@pirati.ca>
Fri, 20 Jul 2018 05:36:55 +0000 (05:36 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 20 Jul 2018 05:36:55 +0000 (05:36 +0000)
mastodoncustomemojis/mastodoncustomemojis.php

index 71b6db5c80d523f9cf092ed2817135e8de0c606c..93d0ba65a9989dbaa089d6686a2a7112d1ae4520 100644 (file)
@@ -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;
        }