Rich media doesn't need to be a map
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 31 Dec 2022 03:53:52 +0000 (03:53 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 31 Dec 2022 03:53:52 +0000 (03:53 +0000)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 8fbf9b6d91b199d3dc11f17442d45acb808ff798..cc58f803e6b2c7773c96f6b1ad21d7ce0f7830ee 100644 (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)