activitypub: utils: also match Activity objects
This commit is contained in:
parent
0f3ecb2bfb
commit
379442ad17
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue