Posts by trust level 3 users do not have nofollow on their external links.

This commit is contained in:
Neil Lalonde
2014-01-15 11:40:51 -05:00
parent 5a238c62eb
commit 4f6b208e8d
6 changed files with 57 additions and 8 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ module PrettyText
# we have a minor inconsistency
cloned[:topicId] = opts[:topic_id]
sanitized = markdown(text.dup, cloned)
sanitized = add_rel_nofollow_to_user_content(sanitized) if SiteSetting.add_rel_nofollow_to_user_content
sanitized = add_rel_nofollow_to_user_content(sanitized) if !cloned[:omit_nofollow] && SiteSetting.add_rel_nofollow_to_user_content
sanitized
end