Commit f6957f76586a5bba510f29a7ed965a606945c868

Authored by Miguel Cabeça
1 parent ab191963

Fix image url for emoji.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -160,7 +160,7 @@ module ApplicationHelper @@ -160,7 +160,7 @@ module ApplicationHelper
160 end 160 end
161 161
162 def image_url(source) 162 def image_url(source)
163 - root_url + path_to_image(source) 163 + root_url.sub(/#{root_path}$/,'') + path_to_image(source)
164 end 164 end
165 alias_method :url_to_image, :image_url 165 alias_method :url_to_image, :image_url
166 end 166 end