better name for Story#check_not_tracking_domain

This commit is contained in:
Peter Bhat Harkins 2023-12-29 09:00:21 -06:00
parent 2332d28022
commit 0a3c782eec
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class Story < ApplicationRecord
validate do
if url.present?
already_posted_recently?
check_not_tracking_domain
check_not_banned_domain
check_not_new_domain_from_new_user
errors.add(:url, "is not valid") unless url.match(URL_RE)
elsif description.to_s.strip == ""
@ -217,7 +217,7 @@ class Story < ApplicationRecord
end
end
def check_not_tracking_domain
def check_not_banned_domain
return unless url.present? && new_record? && domain
if domain.banned?