about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-05-24 15:26:42 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-05-24 15:26:42 -0400
commit788bf37c43808393c6187caa25f0f9beb57b76fc (patch)
treeaded6d499d288083796c7d5cc146b7a81d4dc9db
parent5e4cb87d03c9c404c9e14b27def827a6fb5a5729 (diff)
downloadsnitch-788bf37c43808393c6187caa25f0f9beb57b76fc.tar.gz
snitch-788bf37c43808393c6187caa25f0f9beb57b76fc.tar.bz2
snitch-788bf37c43808393c6187caa25f0f9beb57b76fc.zip
Tweets now prefill properly
-rw-r--r--snitch.cpp3
m---------vendor/libtwittercpp0
2 files changed, 2 insertions, 1 deletions
diff --git a/snitch.cpp b/snitch.cpp index 2357a7d..bc0b405 100644 --- a/snitch.cpp +++ b/snitch.cpp
@@ -3,6 +3,7 @@
3#include <fstream> 3#include <fstream>
4#include <thread> 4#include <thread>
5#include <chrono> 5#include <chrono>
6#include <iostream>
6 7
7int main(int argc, char** argv) 8int main(int argc, char** argv)
8{ 9{
@@ -56,7 +57,7 @@ int main(int argc, char** argv)
56 std::cout << "Twitter error while uploading image: " << resp << std::endl; 57 std::cout << "Twitter error while uploading image: " << resp << std::endl;
57 } else { 58 } else {
58 twitter::tweet tw; 59 twitter::tweet tw;
59 resp = client.updateStatus("@" + n.getTweet().getAuthor().getScreenName(), tw, n.getTweet(), {media_id}); 60 resp = client.updateStatus(client.generateReplyPrefill(n.getTweet()), tw, n.getTweet(), {media_id});
60 if (resp != twitter::response::ok) 61 if (resp != twitter::response::ok)
61 { 62 {
62 std::cout << "Twitter error while tweeting: " << resp << std::endl; 63 std::cout << "Twitter error while tweeting: " << resp << std::endl;
diff --git a/vendor/libtwittercpp b/vendor/libtwittercpp
Subproject 77b6ba9a45714b0b91b9ad782877bce5ca92a25 Subproject cec9786bc11c897a00cf7ab8baafb142a709ba2