From: Mark Felder Date: Thu, 11 Feb 2021 20:27:52 +0000 (-0600) Subject: Consistency X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c1d78328ee38fb2bc6c6f56c26588557f27365a9;p=akkoma Consistency --- diff --git a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex index c8f6a2994..ec3e79ea7 100644 --- a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex @@ -420,7 +420,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do end defp put_application(params, %{assigns: %{token: %{app_id: app_id}}} = _conn) do - params |> Map.put(:application, Pleroma.Web.OAuth.App.get_app_by_id(app_id)) + Map.put(params, :application, Pleroma.Web.OAuth.App.get_app_by_id(app_id)) end defp put_application(params, _), do: Map.put(params, :application, %{name: "Web", website: nil})