Add pending to handle incoming for Follow activity
authorkPherox <admin@mail.kr-kp.com>
Tue, 29 Oct 2019 08:12:49 +0000 (17:12 +0900)
committerkPherox <admin@mail.kr-kp.com>
Tue, 29 Oct 2019 08:12:49 +0000 (17:12 +0900)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 3c27b0d46b1fd36583a110be3bd44a524bf1d68e..91a164eff34055e7bcaf368133a7ae70c8ff29fb 100644 (file)
@@ -507,6 +507,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
           })
 
         {:user_locked, true} ->
+          {:ok, _relationship} = FollowingRelationship.update(follower, followed, "pending")
           :noop
       end