static fe: reformat activity representer
This commit is contained in:
parent
2b5bd5236d
commit
e2904b5777
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ def prepare_activity(%User{} = user, %Object{} = object) 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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue