From: William Pitcock Date: Fri, 5 Oct 2018 23:31:00 +0000 (+0000) Subject: activitypub: always track following state for async reasons X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a71b82201365f92ad78ccec7f6f1ceda456eca4f;p=akkoma activitypub: always track following state for async reasons --- diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 0664b5a2e..43a1f432d 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -247,11 +247,11 @@ defmodule Pleroma.Web.ActivityPub.Utils do "actor" => follower_id, "to" => [followed_id], "cc" => ["https://www.w3.org/ns/activitystreams#Public"], - "object" => followed_id + "object" => followed_id, + "state" => "pending" } data = if activity_id, do: Map.put(data, "id", activity_id), else: data - data = if User.locked?(followed), do: Map.put(data, "state", "pending"), else: data data end