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:
commit
106a52eb2e
3 changed files with 4 additions and 0 deletions
1
changelog.d/restore-embeds.fix
Normal file
1
changelog.d/restore-embeds.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Restore embeds route
|
||||||
|
|
@ -20,6 +20,7 @@ defmodule Pleroma.Web.EmbedController do
|
||||||
conn
|
conn
|
||||||
|> delete_resp_header("x-frame-options")
|
|> delete_resp_header("x-frame-options")
|
||||||
|> delete_resp_header("content-security-policy")
|
|> delete_resp_header("content-security-policy")
|
||||||
|
|> put_layout({Pleroma.Web.LayoutView, :embed})
|
||||||
|> render("show.html",
|
|> render("show.html",
|
||||||
activity: activity,
|
activity: activity,
|
||||||
author: User.sanitize_html(author),
|
author: User.sanitize_html(author),
|
||||||
|
|
|
||||||
|
|
@ -1032,6 +1032,8 @@ defmodule Pleroma.Web.Router do
|
||||||
pipe_through(:pleroma_html)
|
pipe_through(:pleroma_html)
|
||||||
|
|
||||||
post("/auth/password", OAuth.PasswordController, :request)
|
post("/auth/password", OAuth.PasswordController, :request)
|
||||||
|
|
||||||
|
get("/embed/:id", EmbedController, :show)
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/proxy/", Pleroma.Web do
|
scope "/proxy/", Pleroma.Web do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue