diff options
Diffstat (limited to 'src/tweet.cpp')
-rw-r--r-- | src/tweet.cpp | 11 |
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 | }; |