From: rinpatch Date: Tue, 21 May 2019 14:33:54 +0000 (+0300) Subject: Accept question objects for conversations X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ff61d345020b9ee79b243fb8d23a37a06cc41b8e;p=akkoma Accept question objects for conversations --- diff --git a/lib/pleroma/conversation.ex b/lib/pleroma/conversation.ex index 238c1acf2..bc97b39ca 100644 --- a/lib/pleroma/conversation.ex +++ b/lib/pleroma/conversation.ex @@ -49,7 +49,7 @@ defmodule Pleroma.Conversation do with true <- Pleroma.Web.ActivityPub.Visibility.is_direct?(activity), "Create" <- activity.data["type"], object <- Pleroma.Object.normalize(activity), - "Note" <- object.data["type"], + 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)