From 1c8b9b73f766d83eeb9dc72e5bb14f305b3ba44c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 20 May 2015 21:35:57 +0200 Subject: [PATCH] Issue 1572: Contact requests to a "FREELOVE" account resulted in "read only" contacts --- include/diaspora.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index c8674e985d..04588dffe6 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -724,16 +724,17 @@ function diaspora_request($importer,$xml) { else $new_relation = CONTACT_IS_FOLLOWER; - $r = q("UPDATE `contact` SET - `photo` = '%s', + $r = q("UPDATE `contact` SET + `photo` = '%s', `thumb` = '%s', - `micro` = '%s', - `rel` = %d, - `name-date` = '%s', - `uri-date` = '%s', - `avatar-date` = '%s', - `blocked` = 0, - `pending` = 0 + `micro` = '%s', + `rel` = %d, + `name-date` = '%s', + `uri-date` = '%s', + `avatar-date` = '%s', + `blocked` = 0, + `pending` = 0, + `writable` = 1 WHERE `id` = %d ", dbesc($photos[0]),