logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: d319b3dbe4cf40bfca12a224adb54a8fb6033090
parent: d60fd87e0191ad05d8dd7f2e8d7d265db6f168d3
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Wed,  3 Jan 2018 00:38:20 +0100

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

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

* Remove trailing whitespace

Diffstat:

Mapp/services/activitypub/process_account_service.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb @@ -74,7 +74,7 @@ class ActivityPub::ProcessAccountService < BaseService @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!