BS"D

For TinyURL and is.gd the links are appearing without http:// so that unless I add it myself they do not show as live in apps such as TweetDeck. Is this an issue with the module or is there another way to address this?

Thanks and thanks for a great module,

Itzhak http://www.abillionshouts.com

Comments

icecreamyou’s picture

Title: Shortened URL's Not Live » URLs have www. instead of http://
Status: Active » Closed (works as designed)

Actually, it's a bug in TweetDeck. Twitter itself accepts URLs with 'www.' instead of 'http://' just fine, as do most other services that comply to the Twitter API standard. Tweet uses www. instead of http:// because it makes the tweet 3 characters shorter.

If you insist, you can change this behavior by editing tweet.module. You need to remove this code:

  //Replace "http://" with "www." if the URL is abbreviated because it's shorter.
  if ($url != $q) {
    $url = drupal_substr($url, 7);
    $url = 'www.'. $url;
  }
ISchier770’s picture

BS"D

Thanks again - yes I did notice it is a problem only in TweetDeck but in case my users also use it I have to be prepared. Hopefully they'll correct it and I'll go back to the original version of the .module.

ISchier770’s picture

Status: Closed (works as designed) » Closed (fixed)