mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
Apply suggestion to lib/pleroma/web/pleroma_api/subscription_notification_controller.ex
This commit is contained in:
parent
c0f776faec
commit
f9be517c7f
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ defmodule Pleroma.Web.PleromaAPI.SubscriptionNotificationController do
|
||||||
|
|
||||||
def get(%{assigns: %{user: user}} = conn, %{"id" => id} = _params) do
|
def get(%{assigns: %{user: user}} = conn, %{"id" => id} = _params) do
|
||||||
with {:ok, notification} <- SubscriptionNotification.get(user, id) do
|
with {:ok, notification} <- SubscriptionNotification.get(user, id) do
|
||||||
conn
|
render(conn, "show.json", %{subscription_notification: notification, for: user})
|
||||||
|> put_view(SubscriptionNotificationView)
|
|
||||||
|> render("show.json", %{subscription_notification: notification, for: user})
|
|
||||||
else
|
else
|
||||||
{:error, reason} ->
|
{:error, reason} ->
|
||||||
conn
|
conn
|
||||||
|
|
Loading…
Reference in a new issue