Commit a71b8220 authored by kaniini's avatar kaniini
Browse files

activitypub: always track following state for async reasons

parent 8ce21777
......@@ -247,11 +247,11 @@ def make_follow_data(
"actor" => follower_id,
"to" => [followed_id],
"cc" => [""],
"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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment