activitypub: utils: also match Activity objects
This commit is contained in:
parent
0f3ecb2bfb
commit
379442ad17
@ -623,6 +623,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||||||
def make_flag_data(params, additional) do
|
def make_flag_data(params, additional) do
|
||||||
status_ap_ids =
|
status_ap_ids =
|
||||||
Enum.map(params.statuses || [], fn
|
Enum.map(params.statuses || [], fn
|
||||||
|
%Activity{} = act -> act.data["id"]
|
||||||
act when is_map(act) -> act["id"]
|
act when is_map(act) -> act["id"]
|
||||||
act when is_binary(act) -> act
|
act when is_binary(act) -> act
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user