Fix response to poll JSON URL
This commit is contained in:
parent
1142379a1c
commit
721d76e82c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue