end
def migration_account_changed?
- current_account.moved_to_account_id != @migration.account&.id
+ current_account.moved_to_account_id != @migration.account&.id &&
+ current_account.id != @migration.account&.id
end
end
:note, :url, :avatar, :avatar_static, :header, :header_static,
:followers_count, :following_count, :statuses_count
- has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved?
-
- delegate :moved?, to: :object
+ has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
def id
object.id.to_s
def header_static
full_asset_url(object.header_static_url)
end
+
+ def moved_and_not_nested?
+ object.moved? && object.moved_to_account.moved_to_account_id.nil?
+ end
end