mirror of
https://github.com/mastodon/mastodon
synced 2024-12-18 08:38:20 +09:00
Fix nil error in migration (#7680)
Under rare circumstances the user record could have already been deleted before...
This commit is contained in:
parent
ad40bf5e0c
commit
c61c4565ab
@ -49,7 +49,7 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
|
||||
# are always either going to be local or not local, so only
|
||||
# one check is needed. Since we cannot support two users with
|
||||
# the same username locally, one has to go. 😢
|
||||
other_account.user.destroy
|
||||
other_account.user&.destroy
|
||||
end
|
||||
|
||||
other_account.destroy
|
||||
|
Loading…
Reference in New Issue
Block a user