This commit is contained in:
Francis Dinh 2018-05-20 21:02:06 -04:00
parent 89c5de9096
commit c8a16f334d

View file

@ -353,6 +353,7 @@ def make_unfollow_data(follower, followed, follow_activity, activity_id) do
"to" => [followed.ap_id],
"object" => follow_activity.data
}
if activity_id, do: Map.put(data, "id", activity_id), else: data
end
@ -381,6 +382,7 @@ def make_block_data(blocker, blocked, activity_id) do
"to" => [blocked.ap_id],
"object" => blocked.ap_id
}
if activity_id, do: Map.put(data, "id", activity_id), else: data
end
@ -391,6 +393,7 @@ def make_unblock_data(blocker, blocked, block_activity, activity_id) do
"to" => [blocked.ap_id],
"object" => block_activity.data
}
if activity_id, do: Map.put(data, "id", activity_id), else: data
end