Fix antenna validation
This commit is contained in:
parent
a080726446
commit
2a1a2da06a
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Antenna < ApplicationRecord
|
|||
validate :list_owner
|
||||
|
||||
def list_owner
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.invalid_list_owner') if list.present? && list.account != account
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.invalid_list_owner') if !list_id.zero? && list.present? && list.account != account
|
||||
end
|
||||
|
||||
def enabled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue