diff options
-rw-r--r-- | snitch.cpp | 3 | ||||
m--------- | vendor/libtwittercpp | 0 |
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 | ||
7 | int main(int argc, char** argv) | 8 | int 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 | ||