From: sxsdv1 Date: Sat, 29 Dec 2018 17:22:40 +0000 (+0100) Subject: Limit activity types accepted to outbox to only 'Create' X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1e781715c8a9c7f6e24838a5522b960250cffc1b;p=akkoma Limit activity types accepted to outbox to only 'Create' --- diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index dca74db73..f90132b4d 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -165,7 +165,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do end end - def update_outbox(%{assigns: %{user: user}} = conn, %{"nickname" => nickname} = params) do + def update_outbox( + %{assigns: %{user: user}} = conn, + %{"nickname" => nickname, "type" => "Create"} = params + ) do if nickname == user.nickname do actor = user.ap_id()