Rename fields to fields_attributes
[akkoma] / lib / pleroma / activity.ex
index baf1e7722bb2ae710e13ecc3c72ca9ea7d9e2be1..35612c882017bb1302015d81a4a70cb49dc0ee1e 100644 (file)
@@ -96,6 +96,7 @@ defmodule Pleroma.Activity do
     from([a] in query,
       left_join: tm in ThreadMute,
       on: tm.user_id == ^user.id and tm.context == fragment("?->>'context'", a.data),
+      as: :thread_mute,
       select: %Activity{a | thread_muted?: not is_nil(tm.id)}
     )
   end