aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-06-08 00:42:11 -0300
committerdequis <dx@dxzone.com.ar>2015-06-08 00:42:11 -0300
commit1201fcb6272cdba734594f9358ba2d08db1afec9 (patch)
treefafd01c3ca58fd33f4bb0ad0c1439931456748cf /protocols/twitter/twitter.c
parent61e7e02096c7910addba32a9060a5e0cba68284b (diff)
twitter: show full url in the url command, with username
By asking the server for the username. Storing the username somewhere would have made sense, but this command isn't going to be used very often, so, whatever.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 7eb948ad..b619b1e5 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -1011,11 +1011,7 @@ static void twitter_handle_command(struct im_connection *ic, char *message)
if (!id) {
twitter_log(ic, "Tweet `%s' does not exist", cmd[1]);
} else {
- /* More common link is twitter.com/$UID/status/$ID (and that's
- * what this will 302 to) but can't generate that since for RTs,
- * bu here points at the retweeter while id contains the id of
- * the original message. */
- twitter_log(ic, "https://twitter.com/statuses/%lld", id);
+ twitter_status_show_url(ic, id);
}
goto eof;