Commit 379442ad authored by kaniini's avatar kaniini
Browse files

activitypub: utils: also match Activity objects

parent 0f3ecb2b
......@@ -623,6 +623,7 @@ def make_create_data(params, additional) do
def make_flag_data(params, additional) do
status_ap_ids =
Enum.map(params.statuses || [], fn
%Activity{} = act -> act.data["id"]
act when is_map(act) -> act["id"]
act when is_binary(act) -> act
end)
......
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