aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-11 03:30:25 -0700
committerFriendika <info@friendika.com>2011-04-11 03:30:25 -0700
commit8b323b566fe2d7a0d72e9a61ef475c3dacb434d0 (patch)
treea857286e242595fb8c06cdadb6068ff7289eb7ad /include
parentc8f32536ff77193689efe69702f91122f97c1f36 (diff)
downloadvolse-hubzilla-8b323b566fe2d7a0d72e9a61ef475c3dacb434d0.tar.gz
volse-hubzilla-8b323b566fe2d7a0d72e9a61ef475c3dacb434d0.tar.bz2
volse-hubzilla-8b323b566fe2d7a0d72e9a61ef475c3dacb434d0.zip
set writable flag on all stat contacts with notify link
Diffstat (limited to 'include')
-rw-r--r--include/poller.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php
index cb2461584..b878ef295 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -269,6 +269,11 @@ function poller_run($argv, $argc){
// $contact['network'] !== 'dfrn'
+ if(($contact['notify']) && (! $contact['writable'])) {
+ q("UPDATE `contact` SET `writable` = 1 WHERE `id` = %d LIMIT 1",
+ intval($contact['id'])
+ );
+ }
$xml = fetch_url($contact['poll']);
}