From: William Pitcock Date: Thu, 14 Mar 2019 19:29:04 +0000 (+0000) Subject: activitypub: utils: also match Activity objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=379442ad17cab9c27863be2c885d10f8b6eadeca;p=akkoma activitypub: utils: also match Activity objects --- diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 9881b7bbb..af317245f 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -623,6 +623,7 @@ defmodule Pleroma.Web.ActivityPub.Utils 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)