mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add ScreenedUrl. Rename BlockedEmail to ScreenedEmail.
This commit is contained in:
@@ -31,6 +31,10 @@ module Oneboxer
|
||||
1.day
|
||||
end
|
||||
|
||||
def self.oneboxer_exists_for_url?(url)
|
||||
Whitelist.entry_for_url(url) || matchers.any? { |matcher| url =~ matcher.regexp }
|
||||
end
|
||||
|
||||
# Return a oneboxer for a given URL
|
||||
def self.onebox_for_url(url)
|
||||
matchers.each do |matcher|
|
||||
|
||||
Reference in New Issue
Block a user