From 721d76e82c04dd27e5d8e026a5fff5e63ca5df8e Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Mon, 15 Apr 2019 13:57:36 +0200 Subject: [PATCH] Fix response to poll JSON URL --- lib/pleroma/web/activity_pub/utils.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 66e8950bc..be15fe6c5 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -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,