mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 06:58:58 +00:00
activitypub: always track following state for async reasons
This commit is contained in:
parent
8ce217776d
commit
a71b822013
|
@ -247,11 +247,11 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
||||||
"actor" => follower_id,
|
"actor" => follower_id,
|
||||||
"to" => [followed_id],
|
"to" => [followed_id],
|
||||||
"cc" => ["https://www.w3.org/ns/activitystreams#Public"],
|
"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 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
|
data
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue