Fix response to poll JSON URL

This commit is contained in:
Maxim Filippov 2019-04-15 13:57:36 +02:00
parent 1142379a1c
commit 721d76e82c
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
require Logger
@supported_object_types ["Article", "Note", "Video", "Page"]
@supported_object_types ["Article", "Note", "Video", "Page", "Question"]
# Some implementations send the actor URI as the actor field, others send the entire actor object,
# so figure out what the actor's URI is based on what we have.
@ -688,6 +688,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
"type" => "Question",
"attributedTo" => params.object_id,
"endTime" => params.expires,
"to" => params.to,
"replies" => %{
"type" => "Collection",
"totalItems" => 0,