Commits

kemar  committed b7878e7

added t.co and fb.me in shorteners

  • Participants
  • Parent commits 051ab23

Comments (0)

Files changed (1)

File tweets/models.py

         Inspired by http://the.taoofmac.com/space/blog/2009/08/10/2205
         """
         shorteners = [u'tr.im',u'tinyurl.com',u'bit.ly',
-                        u'goo.gl']
+                        u'goo.gl',u't.co',u'fb.me']
         max_length = self._meta.get_field('text').max_length
         words = re.split(r'(\s+)', self.text)
         for i, word in enumerate(words):