Don't try to parse watchwords if add_hashtags is false.
This commit is contained in:
parent
39c690861e
commit
99a843e0a2
@ -146,8 +146,11 @@ void Document::download()
|
||||
}
|
||||
|
||||
void Document::parse()
|
||||
{
|
||||
if (_profiledata.add_hashtags)
|
||||
{
|
||||
parse_watchwords();
|
||||
}
|
||||
pt::ptree tree;
|
||||
istringstream iss{_raw_doc};
|
||||
pt::read_xml(iss, tree);
|
||||
|
Loading…
x
Reference in New Issue
Block a user