activitypub: always track following state for async reasons
This commit is contained in:
parent
8ce217776d
commit
a71b822013
|
@ -247,11 +247,11 @@ def make_follow_data(
|
||||||
"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 New Issue