projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f67c26
)
Accept question objects for conversations
author
rinpatch
<rinpatch@sdf.org>
Tue, 21 May 2019 14:33:54 +0000
(17:33 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Tue, 21 May 2019 14:33:54 +0000
(17:33 +0300)
lib/pleroma/conversation.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/conversation.ex
b/lib/pleroma/conversation.ex
index 238c1acf201dda42301b7cb8c4332fcb80e59ea0..bc97b39ca6e6229d888f6fd721747e48f3579115 100644
(file)
--- 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)