static fe: reformat activity representer
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 2 Mar 2019 21:40:02 +0000 (21:40 +0000)
committerPhil Hagelberg <phil@hagelb.org>
Sun, 10 Nov 2019 02:06:51 +0000 (18:06 -0800)
lib/pleroma/web/static_fe/activity_representer.ex

index 9c43156109b1f5b4a87967c81c237fe58680824d..446c6023eae2b2db75b1cd420bb17e5c8ecd0a54 100644 (file)
@@ -17,8 +17,8 @@ defmodule Pleroma.Web.StaticFE.ActivityRepresenter do
     |> set_attachments(object)
   end
 
-  def prepare_activity(%User{} = user, %Activity{} = activity), do:
-    prepare_activity(user, Object.normalize(activity.data["object"]))
+  def prepare_activity(%User{} = user, %Activity{} = activity),
+    do: prepare_activity(user, Object.normalize(activity.data["object"]))
 
   defp set_user(data, %User{} = user), do: Map.put(data, :user, user)