]> git.mxchange.org Git - friendica.git/commitdiff
Use correct data key to compare authors before appending mention in Protocol\Diaspora
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 15 Sep 2019 11:05:47 +0000 (07:05 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 15 Sep 2019 11:05:47 +0000 (07:05 -0400)
src/Protocol/Diaspora.php

index 5da1aac2462e49b3af26e4f1ef8746ba181f09d8..9e074e8a9a1c3a0b820938151fe7d18ac9ce6dae 100644 (file)
@@ -3868,7 +3868,7 @@ class Diaspora
                // - Item is public or explicit mentions are disabled
                // - Implicit mentions are enabled
                if (
-                       $owner['id'] != $thread_parent_item['author-id']
+                       $item['author-id'] != $thread_parent_item['author-id']
                        && (empty($item['uid']) || !Feature::isEnabled($item['uid'], 'explicit_mentions'))
                        && !Config::get('system', 'disable_implicit_mentions')
                ) {