From: Charles Connell Date: Mon, 23 Dec 2013 23:45:51 +0000 (-0500) Subject: Switch back to is.gd X-Git-Tag: release-20150131~366^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cccc25d553526b0b7fdf7e093a91f189ffad7fd6;p=oweals%2Fkarmaworld.git Switch back to is.gd --- diff --git a/karmaworld/apps/notes/tasks.py b/karmaworld/apps/notes/tasks.py index 16cb438..aa631be 100644 --- a/karmaworld/apps/notes/tasks.py +++ b/karmaworld/apps/notes/tasks.py @@ -43,8 +43,8 @@ def tweet_note(): def tweet_string(note): - # This url will use 12 or less characters - shortener = gdshortener.VGDShortener() + # This url will use 13 or less characters + shortener = gdshortener.ISGDShortener() url = "https://www.karmanotes.org" + \ note.get_absolute_url() short_url = shortener.shorten(url)[0] @@ -63,7 +63,7 @@ def tweet_string(note): # space and colon characters # 57 characters - short_note = note.name[:58] + short_note = note.name[:57] return short_url + " #" + short_school + " " + \ short_course + ": " + \