]> git.mxchange.org Git - friendica.git/commitdiff
Possible fix for issue 4013
authorMichael <heluecht@pirati.ca>
Thu, 7 Dec 2017 19:39:55 +0000 (19:39 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 7 Dec 2017 19:39:55 +0000 (19:39 +0000)
src/Protocol/Diaspora.php

index cd4e5b6f0e0135980d21efa40b0c62f867ad8bcd..7317d8129e4ede07dcdc034db953a93bdda365ea 100644 (file)
@@ -992,7 +992,7 @@ class Diaspora
                 * That makes us friends.
                 * Normally this should have handled by getting a request - but this could get lost
                 */
-               if ($contact["rel"] == CONTACT_IS_FOLLOWER && in_array($importer["page-flags"], array(PAGE_FREELOVE))) {
+               if (!$is_comment && $contact["rel"] == CONTACT_IS_FOLLOWER && in_array($importer["page-flags"], array(PAGE_FREELOVE))) {
                        dba::update(
                                'contact',
                                array('rel' => CONTACT_IS_FRIEND, 'writable' => true),