1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 02:49:18 +00:00

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
# 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)