From c5004095175060f437b26e0a4b03e2bd85024ed6 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Wed, 27 Aug 2014 01:05:15 +0400 Subject: [PATCH] future-friendly filter ("not dm" instead of unclear "rt AND NORMAL") --- src/twister.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twister.cpp b/src/twister.cpp index 0d9b40a4..92e17f78 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -1639,7 +1639,7 @@ int findLastPublicPostLocalUser( std::string strUsername ) std::vector pieces; int max_id = std::numeric_limits::max(); int since_id = -1; - h.get_pieces(pieces, 1, max_id, since_id, USERPOST_FLAG_RT); + h.get_pieces(pieces, 1, max_id, since_id, ~USERPOST_FLAG_DM); if( pieces.size() ) { string const& piece = pieces.front(); @@ -1866,7 +1866,7 @@ Value getposts(const Array& params, bool fHelp) int count = params[0].get_int(); Array users = params[1].get_array(); - int flags = (params.size() > 2) ? params[2].get_int() : USERPOST_FLAG_RT; + int flags = (params.size() > 2) ? params[2].get_int() : ~USERPOST_FLAG_DM; std::multimap postsByTime;