Update moved-to property when it's removed too (#6160)

* Fix #6140 - Update moved-to property when it's removed too

* Remove trailing whitespace
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2018-01-03 00:38:20 +01:00 committed by GitHub
parent d60fd87e01
commit d319b3dbe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class ActivityPub::ProcessAccountService < BaseService
@account.statuses_count = outbox_total_items if outbox_total_items.present? @account.statuses_count = outbox_total_items if outbox_total_items.present?
@account.following_count = following_total_items if following_total_items.present? @account.following_count = following_total_items if following_total_items.present?
@account.followers_count = followers_total_items if followers_total_items.present? @account.followers_count = followers_total_items if followers_total_items.present?
@account.moved_to_account = moved_account if @json['movedTo'].present? @account.moved_to_account = @json['movedTo'].present? ? moved_account : nil
end end
def after_protocol_change! def after_protocol_change!