]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #5926 - Do not downgrade to OStatus once ActivityPub is known (#5929)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 9 Dec 2017 00:24:47 +0000 (01:24 +0100)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2017 00:24:47 +0000 (01:24 +0100)
app/services/resolve_remote_account_service.rb

index 3293fe40f1ad9cb41de6bfba2f79962895f6014b..d7d0be21055e6cb489a823d7ff3f3609c9e001b5 100644 (file)
@@ -44,7 +44,7 @@ class ResolveRemoteAccountService < BaseService
       if lock.acquired?
         @account = Account.find_remote(@username, @domain)
 
-        if activitypub_ready?
+        if activitypub_ready? || @account&.activitypub?
           handle_activitypub
         else
           handle_ostatus