From 8b323b566fe2d7a0d72e9a61ef475c3dacb434d0 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 11 Apr 2011 03:30:25 -0700 Subject: [PATCH] set writable flag on all stat contacts with notify link --- include/poller.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/poller.php b/include/poller.php index cb24615848..b878ef2954 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']); }