diff --git a/plugins/as_quote_it/lib/quote_it.rb b/plugins/as_quote_it/lib/quote_it.rb index c9a037939..0c9478f34 100644 --- a/plugins/as_quote_it/lib/quote_it.rb +++ b/plugins/as_quote_it/lib/quote_it.rb @@ -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