📧 [AP] Set correct "to" when creating a comment instead of always

targetting public

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-12-21 09:03:10 +01:00
parent 0f31535cf3
commit 5a140bef35
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -41,7 +41,7 @@ defmodule MobilizonWeb.API.Comments do
cc
) do
ActivityPub.create(%{
to: ["https://www.w3.org/ns/activitystreams#Public"],
to: to,
actor: actor,
object: comment,
local: true