add rel=nofollow in more places

This commit is contained in:
r888888888
2016-02-03 23:47:17 -08:00
parent 340a62b49f
commit 504674b288
6 changed files with 9 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ class DText
def self.parse_post_links(str)
str.gsub(/\{\{([^\}]+)\}\}/) do
tags = CGI.unescapeHTML($1)
%{<a href="/posts?tags=#{u(tags)}">#{h(tags)}</a>}
%{<a rel="nofollow" href="/posts?tags=#{u(tags)}">#{h(tags)}</a>}
end
end