Adding more unit tests. Fixing Salmon slaps XML

This commit is contained in:
Eugen Rochko
2017-02-12 17:28:15 +01:00
parent 446267d1bf
commit 720ff55262
13 changed files with 363 additions and 58 deletions

View File

@ -9,7 +9,7 @@ class AfterRemoteFollowWorker
follow = Follow.find(follow_id)
updated_account = FetchRemoteAccountService.new.call(follow.target_account.remote_url)
return unless updated_account.locked?
return if updated_account.nil? || !updated_account.locked?
follow.destroy
FollowService.new.call(follow.account, updated_account.acct)