Possible fix for issue 4013

This commit is contained in:
Michael 2017-12-07 19:39:55 +00:00
parent cf45e8738c
commit 3824ad5590

View 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),