From ebabe2de23096a023e31509f3c2f58dfb1113e12 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Nov 2020 20:38:51 +0100 Subject: [PATCH] =?UTF-8?q?Only=20print=20=E2=80=9CStatus:=20[=E2=80=A6]?= =?UTF-8?q?=E2=80=9D=20in=20--dry-run=20if=20titles=5Fas=5Fcw=20=3D=20true?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mastoapi.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mastoapi.cpp b/src/mastoapi.cpp index d9b94ce..de55701 100644 --- a/src/mastoapi.cpp +++ b/src/mastoapi.cpp @@ -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;