logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: ba4e194e2b0a3fdd9a77663f7dac8b1a89d09464
parent 853bc52cfe073933edb02d0697f22fa734f76492
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 14 Jan 2026 05:15:28 +0100

Web: remove legacy :set_put_layout plug

Phoenix 1.8 requires a View module with put_layout so can't set it that early.

It was introduced in 2019 with
commit 1097ce6d9f06a7552652c5990cee12e7b7b3cc59
but nothing seems to provide app.html (anymore?) and it would likely
better be set by something like OAuthController / OAuthView.

Diffstat:

Mlib/pleroma/web.ex6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/lib/pleroma/web.ex b/lib/pleroma/web.ex @@ -39,12 +39,6 @@ defmodule Pleroma.Web do alias Pleroma.Web.Router.Helpers, as: Routes - plug(:set_put_layout) - - defp set_put_layout(conn, _) do - put_layout(conn, Pleroma.Config.get(:app_layout, "app.html")) - end - # Marks plugs intentionally skipped and blocks their execution if present in plugs chain defp skip_plug(conn, plug_modules) do plug_modules