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:
parent
5a238c62eb
commit
4f6b208e8d
6 changed files with 57 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue