From: FloatingGhost Date: Sat, 31 Dec 2022 03:53:52 +0000 (+0000) Subject: Rich media doesn't need to be a map X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b8f280b4b500a20eeb6046dd29e3070696da8977;p=akkoma Rich media doesn't need to be a map --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 8fbf9b6d9..cc58f803e 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -28,7 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do # to fetch the preview. However it should be fine considering # pagination is restricted to 40 activities at a time defp fetch_rich_media_for_activities(activities) do - Enum.map(activities, fn activity -> + Enum.each(activities, fn activity -> spawn(fn -> Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity) end)