fixes #1280
This commit is contained in:
@@ -27,7 +27,7 @@ module PostsHelper
|
||||
source_link = link_to(text, post.normalized_source)
|
||||
source_search = "source:#{text}"
|
||||
elsif post.source =~ /^http/
|
||||
text = truncate(post.normalized_source.sub(/^https?:\/\/(?:www)?/, ""))
|
||||
text = truncate(post.normalized_source.sub(/^https?:\/\/(?:www\.)?/, ""))
|
||||
source_link = link_to(truncate(text, :length => 20), post.normalized_source)
|
||||
source_search = "source:#{post.source.sub(/[^\/]*$/, "")}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user