Rich media doesn't need to be a map

This commit is contained in:
FloatingGhost 2022-12-31 03:53:52 +00:00
parent c8f2c4b638
commit b8f280b4b5

View file

@ -28,7 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
# to fetch the preview. However it should be fine considering # to fetch the preview. However it should be fine considering
# pagination is restricted to 40 activities at a time # pagination is restricted to 40 activities at a time
defp fetch_rich_media_for_activities(activities) do defp fetch_rich_media_for_activities(activities) do
Enum.map(activities, fn activity -> Enum.each(activities, fn activity ->
spawn(fn -> spawn(fn ->
Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity) Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
end) end)