From 7387619c2bceb96aae6b878c5e789bc4e1592217 Mon Sep 17 00:00:00 2001 From: Anomaly UK Date: Tue, 9 Feb 2016 16:58:32 +0000 Subject: [PATCH 1/2] author parameter to rss optional parameter "author" to rss request so you can request posts just by a single author --- src/twister_rss.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/twister_rss.cpp b/src/twister_rss.cpp index aeb17cd7..bc3919c1 100644 --- a/src/twister_rss.cpp +++ b/src/twister_rss.cpp @@ -24,6 +24,7 @@ int generateRSS(string uri, string *output) int max = 20; //default value string account = parameterMap["account"]; string strMax = parameterMap["max"]; + string author = parameterMap["author"]; if(strMax!="") { try @@ -66,11 +67,20 @@ int generateRSS(string uri, string *output) params1.push_back(account); Array followingArray = getfollowing(params1,false).get_array(); Array postSources; - for(int i=0;i Date: Tue, 9 Feb 2016 21:40:41 +0000 Subject: [PATCH 2/2] Match indentation style --- src/twister_rss.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/twister_rss.cpp b/src/twister_rss.cpp index bc3919c1..a8bf6295 100644 --- a/src/twister_rss.cpp +++ b/src/twister_rss.cpp @@ -68,7 +68,8 @@ int generateRSS(string uri, string *output) Array followingArray = getfollowing(params1,false).get_array(); Array postSources; - if(author=="") { + if(author=="") + { // default fetch posts from all followed authors for(int i=0;i