mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
Use moved? query method where relevant (#35542)
This commit is contained in:
parent
9d0d6f011c
commit
b464b87c2b
3 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ class Settings::Migration::RedirectsController < Settings::BaseController
|
|||
end
|
||||
|
||||
def destroy
|
||||
if current_account.moved_to_account_id.present?
|
||||
if current_account.moved?
|
||||
current_account.update!(moved_to_account: nil)
|
||||
ActivityPub::UpdateDistributionWorker.perform_async(current_account.id)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue