mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:
committed by
GitHub
parent
5077cf52fd
commit
e0d9232259
@@ -44,7 +44,7 @@ class UserDestroyer
|
||||
if opts[:block_urls]
|
||||
post.topic_links.each do |link|
|
||||
next if link.internal
|
||||
next if Oneboxer.engine(link.url) != Onebox::Engine::WhitelistedGenericOnebox
|
||||
next if Oneboxer.engine(link.url) != Onebox::Engine::AllowlistedGenericOnebox
|
||||
ScreenedUrl.watch(link.url, link.domain, ip_address: user.ip_address)&.record_match!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user