Merge pull request 'Fix the /embed endpoint' (#540) from mikihau/akkoma:develop into develop

Reviewed-on: AkkomaGang/akkoma#540
This commit is contained in:
floatingghost 2023-07-15 20:48:30 +00:00
commit 210df6fe92
4 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ defmodule Pleroma.Constants do
const(static_only_files,
do:
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance sw.js sw-pleroma.js favicon.png schemas doc embed.js embed.css)
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.png schemas doc)
)
const(status_updatable_fields,

View file

@ -6,10 +6,10 @@
<title><%= Pleroma.Config.get([:instance, :name]) %></title>
<meta content='noindex' name='robots'>
<%= Phoenix.HTML.raw(assigns[:meta] || "") %>
<link rel="stylesheet" href="/embed.css">
<link rel="stylesheet" href="/embed/embed.css">
<base target="_parent">
</head>
<body>
<%= render @view_module, @view_template, assigns %>
<%= render view_module(@conn), view_template(@conn), assigns %>
</body>
</html>

BIN
priv/static/embed/embed.css Normal file

Binary file not shown.

BIN
priv/static/embed/embed.js Normal file

Binary file not shown.