diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-03 16:09:49 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-03 16:09:49 -0700 |
commit | b716d01a41c54c06676a1e54a48c36e05755a247 (patch) | |
tree | 822280a837809452c94905b2beb1d91a760752c7 /plugins/TwitterBridge/twittersettings.php | |
parent | 0229c22d2358933758fea98284349a871106b3bd (diff) | |
parent | 28e009898f6ce6dd72471a5ae4abbc91e6b00193 (diff) |
Merge branch '0.9.x' into 1.0.x
Diffstat (limited to 'plugins/TwitterBridge/twittersettings.php')
-rw-r--r-- | plugins/TwitterBridge/twittersettings.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twittersettings.php b/plugins/TwitterBridge/twittersettings.php index 33c5eb65b..c169172b0 100644 --- a/plugins/TwitterBridge/twittersettings.php +++ b/plugins/TwitterBridge/twittersettings.php @@ -285,6 +285,7 @@ class TwittersettingsAction extends ConnectSettingsAction } $original = clone($flink); + $wasReceiving = (bool)($original->noticesync & FOREIGN_NOTICE_RECV); $flink->set_flags($noticesend, $noticerecv, $replysync, $friendsync); $result = $flink->update($original); @@ -294,6 +295,19 @@ class TwittersettingsAction extends ConnectSettingsAction return; } + if ($wasReceiving xor $noticerecv) { + $this->notifyDaemon($flink->foreign_id, $noticerecv); + } + $this->showForm(_m('Twitter preferences saved.'), true); } + + /** + * Tell the import daemon that we've updated a user's receive status. + */ + function notifyDaemon($twitterUserId, $receiving) + { + // todo... should use control signals rather than queues + } + } |