aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-10 19:29:21 -0700
committerFriendika <info@friendika.com>2011-04-10 19:29:21 -0700
commit3d51518a13fd44da3fa9a01b9ae1f1baa5d41848 (patch)
tree70828f278ca87308c2c3718031a53dd0c15b1b2a /mod/dfrn_notify.php
parent63030ca51e9e7f6fbd50aed6b9f6a3cf10084a3f (diff)
downloadvolse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.tar.gz
volse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.tar.bz2
volse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.zip
set writable flag on dfrn_poll
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index dd6866b38..f6f68d348 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -80,6 +80,14 @@ function dfrn_notify_post(&$a) {
$importer = $r[0];
+ if(($writable != (-1)) && ($writable != $importer['writable'])) {
+ q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d LIMIT 1",
+ intval($writable),
+ intval($importer['id'])
+ );
+ $importer['writable'] = $writable;
+ }
+
logger('dfrn_notify: received notify from ' . $importer['name'] . ' for ' . $importer['username']);
logger('dfrn_notify: data: ' . $data, LOGGER_DATA);
@@ -124,8 +132,6 @@ function dfrn_notify_post(&$a) {
}
-
-
if($importer['readonly']) {
// We aren't receiving stuff from this person. But we will quietly ignore them
// rather than a blatant "go away" message.