From b2c88e69fe8dc65752d0153944470b5184668ec1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 10 Feb 2017 11:30:38 -0500 Subject: Rolled back accidental debug change --- advice.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/advice.cpp b/advice.cpp index 18be163..11a5d65 100644 --- a/advice.cpp +++ b/advice.cpp @@ -295,8 +295,7 @@ void advice::run() const try { pic.magick("png"); - //pic.write(&outputimg); - pic.write("output.png"); + pic.write(&outputimg); } catch (const Magick::WarningCoder& e) { // Ignore @@ -311,8 +310,8 @@ void advice::run() const tweetText = tweetText.substr(0, tweetLim - 1) + "…"; } - //long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); - //client_->updateStatus(tweetText, {media_id}); + long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); + client_->updateStatus(tweetText, {media_id}); std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; -- cgit 1.4.1