diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:30:38 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:30:38 -0500 |
| commit | b2c88e69fe8dc65752d0153944470b5184668ec1 (patch) | |
| tree | dbbe5bf04d25c80e4aa2a47291ef9f57ad4875c0 /advice.cpp | |
| parent | 45940415dc6316268938c4ca26dfdd8b254508eb (diff) | |
| download | advice-b2c88e69fe8dc65752d0153944470b5184668ec1.tar.gz advice-b2c88e69fe8dc65752d0153944470b5184668ec1.tar.bz2 advice-b2c88e69fe8dc65752d0153944470b5184668ec1.zip | |
Rolled back accidental debug change
Diffstat (limited to 'advice.cpp')
| -rw-r--r-- | advice.cpp | 7 |
1 files 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 | |||
| 295 | try | 295 | try |
| 296 | { | 296 | { |
| 297 | pic.magick("png"); | 297 | pic.magick("png"); |
| 298 | //pic.write(&outputimg); | 298 | pic.write(&outputimg); |
| 299 | pic.write("output.png"); | ||
| 300 | } catch (const Magick::WarningCoder& e) | 299 | } catch (const Magick::WarningCoder& e) |
| 301 | { | 300 | { |
| 302 | // Ignore | 301 | // Ignore |
| @@ -311,8 +310,8 @@ void advice::run() const | |||
| 311 | tweetText = tweetText.substr(0, tweetLim - 1) + "…"; | 310 | tweetText = tweetText.substr(0, tweetLim - 1) + "…"; |
| 312 | } | 311 | } |
| 313 | 312 | ||
| 314 | //long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); | 313 | long media_id = client_->uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length()); |
| 315 | //client_->updateStatus(tweetText, {media_id}); | 314 | client_->updateStatus(tweetText, {media_id}); |
| 316 | 315 | ||
| 317 | std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; | 316 | std::cout << "Tweeted!" << std::endl << "Waiting..." << std::endl; |
| 318 | 317 | ||
