Only print “Status: […]” in --dry-run if titles_as_cw = true.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-11-21 20:38:51 +01:00
parent eb897eddae
commit ebabe2de23
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,10 @@ void MastoAPI::post_item(const Item &item, bool dry_run)
{
using std::cout;
cout << " WOULD POST: \n";
cout << "Subject: " << title << '\n';
if (_profile.titles_as_cw)
{
cout << "Subject: " << title << '\n';
}
cout << "Status:\n" << status << '\n';
}
BOOST_LOG_TRIVIAL(debug) << "Posted status with GUID: " << item.guid;