From 788bf37c43808393c6187caa25f0f9beb57b76fc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 May 2016 15:26:42 -0400 Subject: Tweets now prefill properly --- snitch.cpp | 3 ++- vendor/libtwittercpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/snitch.cpp b/snitch.cpp index 2357a7d..bc0b405 100644 --- a/snitch.cpp +++ b/snitch.cpp @@ -3,6 +3,7 @@ #include #include #include +#include int main(int argc, char** argv) { @@ -56,7 +57,7 @@ int main(int argc, char** argv) std::cout << "Twitter error while uploading image: " << resp << std::endl; } else { twitter::tweet tw; - resp = client.updateStatus("@" + n.getTweet().getAuthor().getScreenName(), tw, n.getTweet(), {media_id}); + resp = client.updateStatus(client.generateReplyPrefill(n.getTweet()), tw, n.getTweet(), {media_id}); if (resp != twitter::response::ok) { std::cout << "Twitter error while tweeting: " << resp << std::endl; diff --git a/vendor/libtwittercpp b/vendor/libtwittercpp index 77b6ba9..cec9786 160000 --- a/vendor/libtwittercpp +++ b/vendor/libtwittercpp @@ -1 +1 @@ -Subproject commit 77b6ba9a45714b0b91b9ad782877bce5ca92a258 +Subproject commit cec9786bc11c897a00cf7ab8baafb142a709ba27 -- cgit 1.4.1