Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Use ENV['QUOTEIT_URL'] as quoteit url refs #120
Browse files Browse the repository at this point in the history
  • Loading branch information
mzp committed Jul 26, 2013
1 parent 6fdc1f8 commit 8f2879e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/as_quote_it/lib/quote_it.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class AsakusaSatellite::Filter::QuoteIt < AsakusaSatellite::Filter::Base
def process(text, opts={})
root = opts[:root] || 'http://quoteit.heroku.com'
root = opts[:root] || ENV['QUOTEIT_URL'] || 'http://quoteit.heroku.com'
text.gsub URI.regexp(%w[http https]) do|url|
begin
open("#{root}/clip.html?u=#{CGI.escape url}").read
Expand Down

0 comments on commit 8f2879e

Please sign in to comment.