mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
Merge branch 'emailvalidation'
This commit is contained in:
commit
6b88c8339d
19 changed files with 181 additions and 28 deletions
|
@ -121,6 +121,8 @@ class Site < Sequel::Model
|
|||
maximum_site_files: 2000
|
||||
)
|
||||
|
||||
EMAIL_VALIDATION_CUTOFF_DATE = Time.parse('May 16, 2016')
|
||||
|
||||
def self.newsletter_sites
|
||||
Site.select(:email).
|
||||
exclude(email: 'nil').exclude(is_banned: true).
|
||||
|
@ -160,6 +162,8 @@ class Site < Sequel::Model
|
|||
EMAIL_BLAST_MAXIMUM_PER_DAY = 1000
|
||||
end
|
||||
|
||||
MAXIMUM_EMAIL_CONFIRMATIONS = 20
|
||||
|
||||
many_to_many :tags
|
||||
|
||||
one_to_many :profile_comments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue