Limit activity types accepted to outbox to only 'Create'
This commit is contained in:
parent
569bad8210
commit
1e781715c8
@ -165,7 +165,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||||||
end
|
end
|
||||||
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
|
if nickname == user.nickname do
|
||||||
actor = user.ap_id()
|
actor = user.ap_id()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user