Add API endpoint to remove a conversation
This commit is contained in:
parent
8910303f71
commit
cf6d3db58f
8 changed files with 76 additions and 9 deletions
|
|
@ -61,9 +61,8 @@ defmodule Pleroma.Conversation do
|
|||
"Create" <- activity.data["type"],
|
||||
%Object{} = object <- Object.normalize(activity, fetch: false),
|
||||
true <- object.data["type"] in ["Note", "Question"],
|
||||
ap_id when is_binary(ap_id) and byte_size(ap_id) > 0 <- object.data["context"] do
|
||||
{:ok, conversation} = create_for_ap_id(ap_id)
|
||||
|
||||
ap_id when is_binary(ap_id) and byte_size(ap_id) > 0 <- object.data["context"],
|
||||
{:ok, conversation} <- create_for_ap_id(ap_id) do
|
||||
users = User.get_users_from_set(activity.recipients, local_only: false)
|
||||
|
||||
participations =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue