From 4bb61b98b4fcc2b7f0d62f18699e04909c39dcdf 2018-08-16 20:46:43 From: Vitaly Takmazov Date: 2018-08-16 20:46:43 Subject: [PATCH] Twitter backend: disable DM polling * Twitter make Direct Message API deprecated, DM polling is disabled until backend upgraded to new API --- diff --git a/backends/twitter/TwitterPlugin.cpp b/backends/twitter/TwitterPlugin.cpp index 47bcb4b7f907efada529d6f97117edc4c5387f7c..05271b0db4980058120f047f214f5da87156dc21 100644 --- a/backends/twitter/TwitterPlugin.cpp +++ b/backends/twitter/TwitterPlugin.cpp @@ -81,7 +81,7 @@ TwitterPlugin::TwitterPlugin(Config *config, Swift::SimpleEventLoop *loop, Stora message_timer = m_factories->getTimerFactory()->createTimer(CONFIG_INT_DEFAULTED(config, "twitter.fetch_timeout", 90000)); tweet_timer->onTick.connect(boost::bind(&TwitterPlugin::pollForTweets, this)); - message_timer->onTick.connect(boost::bind(&TwitterPlugin::pollForDirectMessages, this)); + //message_timer->onTick.connect(boost::bind(&TwitterPlugin::pollForDirectMessages, this)); tweet_timer->start(); message_timer->start();