Permalink
Browse files

switch url shortening service from ln-s.net to is.gd

  • Loading branch information...
1 parent 4429026 commit ab22f220ea249b46428dcefdd9082e5a50683e10 @arches arches committed Apr 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemwhisperer.rb
View
@@ -63,7 +63,7 @@ class Whisper < ActiveRecord::Base
)
Log.info "created whisper: #{whisper.inspect}"
- short_url = Net::HTTP.get(URI.parse("http://ln-s.net/home/api.jsp?url=#{URI.escape(whisper.url)}")).split.last
+ short_url = Net::HTTP.get(URI.parse("http://is.gd/create.php?format=simple&url=#{URI.escape(whisper.url)}"))
Log.info "shorted url: #{short_url}"
whisper_text = "#{whisper.name} (#{whisper.version}): #{short_url} #{whisper.info}"

0 comments on commit ab22f22

Please sign in to comment.