mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Add coverage for AccountPin model (#33231)
This commit is contained in:
@@ -23,6 +23,6 @@ class AccountPin < ApplicationRecord
|
||||
private
|
||||
|
||||
def validate_follow_relationship
|
||||
errors.add(:base, I18n.t('accounts.pin_errors.following')) unless account.following?(target_account)
|
||||
errors.add(:base, I18n.t('accounts.pin_errors.following')) unless account&.following?(target_account)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user