about summary refs log tree commit diff stats
path: root/src/tweet.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-08-20 14:04:11 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-08-20 14:04:11 -0400
commit6c9f541f34c58ac817f88ffb5e069b929bbbc274 (patch)
treef493fbccbcdc1489b0ad58cd4b8587a3bf020bf4 /src/tweet.cpp
parent69fc8d805396b889b5e8c1c88e8129d93db77d29 (diff)
parentc3cc76301d64320791f7097709ffcd36d7206266 (diff)
downloadlibtwittercpp-6c9f541f34c58ac817f88ffb5e069b929bbbc274.tar.gz
libtwittercpp-6c9f541f34c58ac817f88ffb5e069b929bbbc274.tar.bz2
libtwittercpp-6c9f541f34c58ac817f88ffb5e069b929bbbc274.zip
Merge branch 'master' of https://github.com/hatkirby/libtwittercpp
Diffstat (limited to 'src/tweet.cpp')
-rw-r--r--src/tweet.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tweet.cpp b/src/tweet.cpp index 4849fb7..4abe2f8 100644 --- a/src/tweet.cpp +++ b/src/tweet.cpp
@@ -66,4 +66,15 @@ namespace twitter {
66 return *_author == _client.getUser(); 66 return *_author == _client.getUser();
67 } 67 }
68 68
69 std::string tweet::getURL() const
70 {
71 std::ostringstream urlstr;
72 urlstr << "https://twitter.com";
73 urlstr << _author->getScreenName();
74 urlstr << "/statuses/";
75 urlstr << _id;
76
77 return urlstr.str();
78 }
79
69}; 80};