Skip to content

Commit

Permalink
Twitter backend: disable DM polling
Browse files Browse the repository at this point in the history
* Twitter make Direct Message API deprecated, DM polling is disabled until backend upgraded to new API
  • Loading branch information
vitalyster committed Aug 16, 2018
1 parent 2e7208d commit 4bb61b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/twitter/TwitterPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4bb61b9

Please sign in to comment.