1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-23 19:15:10 +01:00

static fe: reformat activity representer

This commit is contained in:
William Pitcock 2019-03-02 21:40:02 +00:00 committed by Phil Hagelberg
parent 2b5bd5236d
commit e2904b5777

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