We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9cbda327 authored by Brion Vibber's avatar Brion Vibber

Pull out the 'tweetctl' queue for now; these should go over control signals,...

Pull out the 'tweetctl' queue for now; these should go over control signals, and actual handling isn't implemented yet anyway.
parent a2f0f68d
......@@ -279,9 +279,6 @@ class TwitterBridgePlugin extends Plugin
// Incoming statuses <- twitter
$manager->connect('tweetin', 'TweetInQueueHandler');
// Control messages from our web interface to the import daemon
$manager->connect('tweetctl', 'TweetCtlQueueHandler', 'twitter');
}
return true;
}
......
......@@ -285,7 +285,7 @@ class TwittersettingsAction extends ConnectSettingsAction
}
$original = clone($flink);
$wasReceiving = (bool)($original->notice_sync & FOREIGN_NOTICE_RECV);
$wasReceiving = (bool)($original->noticesync & FOREIGN_NOTICE_RECV);
$flink->set_flags($noticesend, $noticerecv, $replysync, $friendsync);
$result = $flink->update($original);
......@@ -307,10 +307,7 @@ class TwittersettingsAction extends ConnectSettingsAction
*/
function notifyDaemon($twitterUserId, $receiving)
{
$data = array('for_user' => $twitterUserId,
'action' => $receiving ? 'stop' : 'start');
$qm = QueueManager::get();
$qm->enqueue($data, 'twitterctl');
// todo... should use control signals rather than queues
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment