mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
Screened Urls page shows results for each domain instead of each url
This commit is contained in:
@ -18,7 +18,7 @@ class ScreenedUrl < ActiveRecord::Base
|
||||
|
||||
def normalize
|
||||
self.url = ScreenedUrl.normalize_url(self.url) if self.url
|
||||
self.domain = self.domain.downcase if self.domain
|
||||
self.domain = self.domain.downcase.sub(/^www\./, '') if self.domain
|
||||
end
|
||||
|
||||
def self.watch(url, domain, opts={})
|
||||
|
Reference in New Issue
Block a user