From: William Pitcock Date: Sat, 2 Mar 2019 21:40:02 +0000 (+0000) Subject: static fe: reformat activity representer X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e2904b5777ecf6c8ffe7fe46f09284bb38b03fc2;p=akkoma static fe: reformat activity representer --- diff --git a/lib/pleroma/web/static_fe/activity_representer.ex b/lib/pleroma/web/static_fe/activity_representer.ex index 9c4315610..446c6023e 100644 --- a/lib/pleroma/web/static_fe/activity_representer.ex +++ b/lib/pleroma/web/static_fe/activity_representer.ex @@ -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)