Merge pull request 'Restore embed route' (#7857) from mkljczk/pleroma:restore-embeds into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7857
This commit is contained in:
feld 2026-03-25 19:52:16 +00:00
commit 106a52eb2e
3 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
Restore embeds route

View file

@ -20,6 +20,7 @@ defmodule Pleroma.Web.EmbedController do
conn
|> delete_resp_header("x-frame-options")
|> delete_resp_header("content-security-policy")
|> put_layout({Pleroma.Web.LayoutView, :embed})
|> render("show.html",
activity: activity,
author: User.sanitize_html(author),

View file

@ -1032,6 +1032,8 @@ defmodule Pleroma.Web.Router do
pipe_through(:pleroma_html)
post("/auth/password", OAuth.PasswordController, :request)
get("/embed/:id", EmbedController, :show)
end
scope "/proxy/", Pleroma.Web do