mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
future-friendly filter ("not dm" instead of unclear "rt AND NORMAL")
This commit is contained in:
parent
ab48764e38
commit
c500409517
@ -1639,7 +1639,7 @@ int findLastPublicPostLocalUser( std::string strUsername )
|
||||
std::vector<std::string> pieces;
|
||||
int max_id = std::numeric_limits<int>::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<int64,entry> postsByTime;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user