static fe: reformat activity representer
This commit is contained in:
parent
2b5bd5236d
commit
e2904b5777
@ -17,8 +17,8 @@ defmodule Pleroma.Web.StaticFE.ActivityRepresenter do
|
|||||||
|> set_attachments(object)
|
|> set_attachments(object)
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare_activity(%User{} = user, %Activity{} = activity), do:
|
def prepare_activity(%User{} = user, %Activity{} = activity),
|
||||||
prepare_activity(user, Object.normalize(activity.data["object"]))
|
do: prepare_activity(user, Object.normalize(activity.data["object"]))
|
||||||
|
|
||||||
defp set_user(data, %User{} = user), do: Map.put(data, :user, user)
|
defp set_user(data, %User{} = user), do: Map.put(data, :user, user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user