|
|
@ -13,6 +13,7 @@ using namespace json_spirit; |
|
|
|
using namespace std; |
|
|
|
using namespace std; |
|
|
|
|
|
|
|
|
|
|
|
#include <boost/filesystem.hpp> |
|
|
|
#include <boost/filesystem.hpp> |
|
|
|
|
|
|
|
#include <boost/locale.hpp> |
|
|
|
#include <boost/algorithm/string.hpp> |
|
|
|
#include <boost/algorithm/string.hpp> |
|
|
|
#include <boost/lexical_cast.hpp> |
|
|
|
#include <boost/lexical_cast.hpp> |
|
|
|
|
|
|
|
|
|
|
@ -1226,7 +1227,7 @@ void updateSeenHashtags(std::string &message, int64_t msgTime) |
|
|
|
BOOST_FOREACH(string const& token, tokens) { |
|
|
|
BOOST_FOREACH(string const& token, tokens) { |
|
|
|
if( token.length() >= 2 ) { |
|
|
|
if( token.length() >= 2 ) { |
|
|
|
string word = token.substr(1); |
|
|
|
string word = token.substr(1); |
|
|
|
boost::algorithm::to_lower(word); |
|
|
|
word = boost::locale::to_lower(word); |
|
|
|
if( token.at(0) == '#') { |
|
|
|
if( token.at(0) == '#') { |
|
|
|
hashtags.insert(word); |
|
|
|
hashtags.insert(word); |
|
|
|
} |
|
|
|
} |
|
|
@ -1489,7 +1490,7 @@ Value newpostmsg(const Array& params, bool fHelp) |
|
|
|
BOOST_FOREACH(string const& token, tokens) { |
|
|
|
BOOST_FOREACH(string const& token, tokens) { |
|
|
|
if( token.length() >= 2 ) { |
|
|
|
if( token.length() >= 2 ) { |
|
|
|
string word = token.substr(1); |
|
|
|
string word = token.substr(1); |
|
|
|
boost::algorithm::to_lower(word); |
|
|
|
word = boost::locale::to_lower(word); |
|
|
|
if( token.at(0) == '#') { |
|
|
|
if( token.at(0) == '#') { |
|
|
|
ses->dht_putData(word, "hashtag", true, |
|
|
|
ses->dht_putData(word, "hashtag", true, |
|
|
|
v, strUsername, GetAdjustedTime(), 0); |
|
|
|
v, strUsername, GetAdjustedTime(), 0); |
|
|
|