diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-17 13:42:40 +0000 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-17 13:42:40 +0000 |
commit | f9be517c7f3e63cfaaca871a4458cbf7c8a6a3f4 (patch) | |
tree | 4ef6835393146036892b337b6de5521a7c43862c | |
parent | c0f776faecfa91ed755760975da12b546ca89317 (diff) | |
download | pleroma-f9be517c7f3e63cfaaca871a4458cbf7c8a6a3f4.tar.gz |
Apply suggestion to lib/pleroma/web/pleroma_api/subscription_notification_controller.ex
-rw-r--r-- | lib/pleroma/web/pleroma_api/subscription_notification_controller.ex | 4 |
1 files changed, 1 insertions, 3 deletions
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 |