activitypub: utils: also match Activity objects

This commit is contained in:
William Pitcock 2019-03-14 19:29:04 +00:00
parent 0f3ecb2bfb
commit 379442ad17

View file

@ -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)