aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2019-09-17 13:42:40 +0000
committerRoman Chvanikov <chvanikoff@pm.me>2019-09-17 13:42:40 +0000
commitf9be517c7f3e63cfaaca871a4458cbf7c8a6a3f4 (patch)
tree4ef6835393146036892b337b6de5521a7c43862c /lib
parentc0f776faecfa91ed755760975da12b546ca89317 (diff)
downloadpleroma-f9be517c7f3e63cfaaca871a4458cbf7c8a6a3f4.tar.gz
Apply suggestion to lib/pleroma/web/pleroma_api/subscription_notification_controller.ex
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/pleroma_api/subscription_notification_controller.ex4
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