Fix antenna validation
This commit is contained in:
parent
5c418472e7
commit
3ecd99faab
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class Antenna < ApplicationRecord
|
||||||
validate :list_owner
|
validate :list_owner
|
||||||
|
|
||||||
def 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
|
end
|
||||||
|
|
||||||
def enabled?
|
def enabled?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue