Don't try to parse watchwords if add_hashtags is false.

This commit is contained in:
tastytea 2020-11-21 20:09:35 +01:00
parent 39c690861e
commit 99a843e0a2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

@ -147,7 +147,10 @@ void Document::download()
void Document::parse()
{
parse_watchwords();
if (_profiledata.add_hashtags)
{
parse_watchwords();
}
pt::ptree tree;
istringstream iss{_raw_doc};
pt::read_xml(iss, tree);