2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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:34:17 -05:00
parent 5a238c62eb
commit 4f6b208e8d
6 changed files with 57 additions and 8 deletions

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