Skip to content

Commit

Permalink
Update moved-to property when it's removed too (mastodon#6160)
Browse files Browse the repository at this point in the history
* Fix mastodon#6140 - Update moved-to property when it's removed too

* Remove trailing whitespace
  • Loading branch information
Gargron committed Jan 2, 2018
1 parent d7f7e5d commit dbcd5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/activitypub/process_account_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def set_fetchable_attributes!
@account.statuses_count = outbox_total_items if outbox_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.moved_to_account = moved_account if @json['movedTo'].present?
@account.moved_to_account = @json['movedTo'].present? ? moved_account : nil
end

def after_protocol_change!
Expand Down

0 comments on commit dbcd5b8

Please sign in to comment.