Only print “Status: […]” in --dry-run if titles_as_cw = true.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
eb897eddae
commit
ebabe2de23
|
@ -133,7 +133,10 @@ void MastoAPI::post_item(const Item &item, bool dry_run)
|
||||||
{
|
{
|
||||||
using std::cout;
|
using std::cout;
|
||||||
cout << " WOULD POST: \n";
|
cout << " WOULD POST: \n";
|
||||||
|
if (_profile.titles_as_cw)
|
||||||
|
{
|
||||||
cout << "Subject: " << title << '\n';
|
cout << "Subject: " << title << '\n';
|
||||||
|
}
|
||||||
cout << "Status:\n" << status << '\n';
|
cout << "Status:\n" << status << '\n';
|
||||||
}
|
}
|
||||||
BOOST_LOG_TRIVIAL(debug) << "Posted status with GUID: " << item.guid;
|
BOOST_LOG_TRIVIAL(debug) << "Posted status with GUID: " << item.guid;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user