Restore embed route
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl> Assisted-by: your mother Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
d0ef58a59d
commit
23cc812366
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
|
||||
|> 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),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue