From ee5310782b6ad5171569a669df79d3222ae88c47 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 11 Apr 2013 17:45:37 -0400 Subject: [PATCH] fix for #1217 --- app/helpers/posts_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/posts_helper.rb b/app/helpers/posts_helper.rb index 763b62860..280189b72 100644 --- a/app/helpers/posts_helper.rb +++ b/app/helpers/posts_helper.rb @@ -21,11 +21,11 @@ module PostsHelper if post.source =~ %r!http://img\d+\.pixiv\.net/img/([^\/]+)/! text = "pixiv/#{$1}" source_link = link_to(text, post.normalized_source) - source_search = "source:#{text}" + source_search = "source:#{text}/" elsif post.source =~ %r!http://i\d\.pixiv\.net/img\d+/img/([^\/]+)/! text = "pixiv/#{$1}" source_link = link_to(text, post.normalized_source) - source_search = "source:#{text}" + source_search = "source:#{text}/" elsif post.source =~ /^http/ text = truncate(post.normalized_source.sub(/^https?:\/\/(?:www\.)?/, "")) source_link = link_to(truncate(text, :length => 20), post.normalized_source)