about summary refs log tree commit diff stats
path: root/src/tweet.cpp
diff options
context:
space:
mode:
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};