~ubuntu-branches/ubuntu/quantal/gwibber/quantal-proposed

« back to all changes in this revision

Viewing changes to gwibber/microblog/dispatcher.py

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-04-03 17:03:45 UTC
  • mfrom: (1.1.75)
  • Revision ID: package-import@ubuntu.com-20120403170345-0pdne56s246lr91x
Tags: 3.4.0-0ubuntu1
* New upstream release
  - Check shorten-urls setting in the dispatcher before attempting to
    shorten, patch thanks to Martin T. (LP: #896639)
  - Removing unnecessary 'Image' link from entries with images obtained
    through imgpreview() (Mark Tully) (LP: #966285)
  - Replace all instances of a hashtag's occurance in a tweet at once
    rather than one at a time (Mark Tully) (LP: #966467)
  - Replace all instances of a nick's occurance in a tweet at once rather
    than one at a time (Mark Tully) (LP: #966467)
  - Catch errors from creating the pixbuf separately from sending the
    notification (LP: #940182)
  - Encode URLs to UTF8 before using them. (LP: #954374)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1052
1052
    
1053
1053
    service = gsettings.get_string("urlshorter") or "is.gd"
1054
1054
    logger.info("Shortening URL %s with %s", url, service)
1055
 
    if self.IsShort(url): return url
 
1055
    if self.IsShort(url) or not gsettings.get_boolean("shorten-urls"): return url
1056
1056
    try:
1057
1057
      s = urlshorter.PROTOCOLS[service].URLShorter()
1058
1058
      return s.short(url)