mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
Posts by trust level 3 users do not have nofollow on their external links.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user