Browse Source

use twister.conf argument to enable direct messages

miguelfreitas
digital dreamer 11 years ago
parent
commit
a6505ddcf9
  1. 6
      src/twister_rss.cpp

6
src/twister_rss.cpp

@ -72,12 +72,15 @@ int generateRSS(string uri, string *output) @@ -72,12 +72,15 @@ int generateRSS(string uri, string *output)
params2.push_back(max);
params2.push_back(postSources);
Array posts = getposts(params2,false).get_array();
vector<Object> outputVector;
if(GetBoolArg("-rss_dm",false)) //synchronizing direct messages is disabled by default
{
Array params3;
params3.push_back(account);
params3.push_back(max);
params3.push_back(postSources);
Object messages = getdirectmsgs(params3,false).get_obj();
vector<Object> outputVector;
for(int j=0;j<messages.size();j++)
{
@ -109,6 +112,7 @@ int generateRSS(string uri, string *output) @@ -109,6 +112,7 @@ int generateRSS(string uri, string *output)
}
}
}
}
for(int i=0;i<posts.size();i++)
{

Loading…
Cancel
Save