diff options
Diffstat (limited to 'src/tweet.cpp')
| -rw-r--r-- | src/tweet.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/tweet.cpp b/src/tweet.cpp index 2927018..193df6e 100644 --- a/src/tweet.cpp +++ b/src/tweet.cpp | |||
| @@ -126,6 +126,11 @@ namespace twitter { | |||
| 126 | return _mentions; | 126 | return _mentions; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | std::string tweet::getURL() const | ||
| 130 | { | ||
| 131 | return "https://twitter.com/" + _author.getScreenName() + "/statuses/" + std::to_string(_id); | ||
| 132 | } | ||
| 133 | |||
| 129 | tweet::operator bool() const | 134 | tweet::operator bool() const |
| 130 | { | 135 | { |
| 131 | return _valid; | 136 | return _valid; |
