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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'snitch.cpp') 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; -- cgit 1.4.1