Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
authorMaksim <parallel588@gmail.com>
Tue, 27 Aug 2019 17:37:19 +0000 (17:37 +0000)
committerMaksim <parallel588@gmail.com>
Tue, 27 Aug 2019 17:37:19 +0000 (17:37 +0000)
lib/pleroma/web/activity_pub/activity_pub_controller.ex

index 5c73fc9f3fb79079bbb6d29cefbd72a962cb4cfb..08bf1c7521b0f6891faaa715a32b05d49f981142 100644 (file)
@@ -309,10 +309,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
   end
 
   def update_outbox(
-        %{assigns: %{user: %User{nickname: user_nickname} = user}} = conn,
+        %{assigns: %{user: %User{nickname: nickname} = user}} = conn,
         %{"nickname" => nickname} = params
-      )
-      when user_nickname == nickname do
+      ) do
     actor = user.ap_id()
 
     params =