Accept question objects for conversations
authorrinpatch <rinpatch@sdf.org>
Tue, 21 May 2019 14:33:54 +0000 (17:33 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 21 May 2019 14:33:54 +0000 (17:33 +0300)
lib/pleroma/conversation.ex

index 238c1acf201dda42301b7cb8c4332fcb80e59ea0..bc97b39ca6e6229d888f6fd721747e48f3579115 100644 (file)
@@ -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)