From: Roman Chvanikov Date: Tue, 17 Sep 2019 13:42:40 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/pleroma_api/subscription_notification_controller.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f9be517c7f3e63cfaaca871a4458cbf7c8a6a3f4;p=akkoma Apply suggestion to lib/pleroma/web/pleroma_api/subscription_notification_controller.ex --- diff --git a/lib/pleroma/web/pleroma_api/subscription_notification_controller.ex b/lib/pleroma/web/pleroma_api/subscription_notification_controller.ex index fff307b4e..969ce0179 100644 --- a/lib/pleroma/web/pleroma_api/subscription_notification_controller.ex +++ b/lib/pleroma/web/pleroma_api/subscription_notification_controller.ex @@ -20,9 +20,7 @@ defmodule Pleroma.Web.PleromaAPI.SubscriptionNotificationController do def get(%{assigns: %{user: user}} = conn, %{"id" => id} = _params) do with {:ok, notification} <- SubscriptionNotification.get(user, id) do - conn - |> put_view(SubscriptionNotificationView) - |> render("show.json", %{subscription_notification: notification, for: user}) + render(conn, "show.json", %{subscription_notification: notification, for: user}) else {:error, reason} -> conn