From 1201fcb6272cdba734594f9358ba2d08db1afec9 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 8 Jun 2015 00:42:11 -0300 Subject: 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. --- protocols/twitter/twitter.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'protocols/twitter/twitter.c') 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; -- cgit v1.2.3