aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVegard LangÄs <sjefen6@gmail.com>2016-02-09 21:17:41 +0100
committerdequis <dx@dxzone.com.ar>2016-02-09 23:05:55 -0300
commit94562555d64001fc5517b328d1c8b8493dfd09cd (patch)
tree046e65582ca2fbde672452a129b3c4abe331c874
parent4543356cfb5b8de4ec4f54d8375945bb695ec9dd (diff)
Change twitter url length to 23 instead of 22
-rw-r--r--protocols/twitter/twitter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index a8103cca..ac0086af 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -473,11 +473,6 @@ int twitter_url_len_diff(gchar *msg, unsigned int target_len)
url = g_match_info_fetch(match_info, 2);
url_len_diff += target_len - g_utf8_strlen(url, -1);
- /* Add another character for https://t.co/... URLs */
- if ((s = g_match_info_fetch(match_info, 3))) {
- url_len_diff += 1;
- g_free(s);
- }
g_free(url);
g_match_info_next(match_info, NULL);
}
@@ -540,7 +535,7 @@ static void twitter_init(account_t * acc)
if (strcmp(acc->prpl->name, "twitter") == 0) {
def_url = TWITTER_API_URL;
- def_tul = "22";
+ def_tul = "23";
def_mentions = "true";
} else { /* if( strcmp( acc->prpl->name, "identica" ) == 0 ) */
def_url = IDENTICA_API_URL;