mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 09:48:18 +08:00
Change comma-delim site settings to pipe-delim
This commit is contained in:
@ -163,9 +163,9 @@ class Post < ActiveRecord::Base
|
||||
|
||||
hosts = SiteSetting
|
||||
.white_listed_spam_host_domains
|
||||
.split(",")
|
||||
.split('|')
|
||||
.map{|h| h.strip}
|
||||
.reject{|h| !h.include?(".")}
|
||||
.reject{|h| !h.include?('.')}
|
||||
|
||||
hosts << GlobalSetting.hostname
|
||||
|
||||
|
Reference in New Issue
Block a user