Added URL to mentions

This commit is contained in:
tastytea 2018-03-16 11:28:53 +01:00
parent d23ca9c198
commit 676b4d356d
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastobotmon
VERSION 0.3.1
VERSION 0.3.2
LANGUAGES CXX)
include(GNUInstallDirs)

View File

@ -73,7 +73,7 @@ If you use a debug build, you get more verbose error messages.
## Mentions
Mentions are written to `data_dir/mentions_account.csv`. The format is: acct;created_at;content.
Mentions are written to `data_dir/mentions_account.csv`. The format is: acct;created_at;content;url.
## Statistics

View File

@ -50,7 +50,8 @@ const bool write_mentions(const string &straccount, Json::Value &mentions)
{
output = mention["status"]["account"]["acct"].asString() + ';';
output += mention["status"]["created_at"].asString() + ';';
output += mention["status"]["content"].asString() + '\n';
output += mention["status"]["content"].asString() + ';';
output += mention["status"]["url"].asString() + '\n';
output = std::regex_replace(output, restrip, "");
outfile.write(output.c_str(), output.length());
}