projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace `MastodonAPIController.account_register/2` rate limiter
[akkoma]
/
lib
/
pleroma
/
plugs
/
instance_static.ex
diff --git
a/lib/pleroma/plugs/instance_static.ex
b/lib/pleroma/plugs/instance_static.ex
index af2f6f331bb0e478f50d699ee9e24ca2e575e841..a64f1ea80ff2088404192fb5821534f6ba01a0a3 100644
(file)
--- a/
lib/pleroma/plugs/instance_static.ex
+++ b/
lib/pleroma/plugs/instance_static.ex
@@
-21,7
+21,8
@@
defmodule Pleroma.Plugs.InstanceStatic do
end
end
end
end
- @only ~w(index.html static emoji packs sounds images instance favicon.png)
+ @only ~w(index.html robots.txt static emoji packs sounds images instance favicon.png sw.js
+ sw-pleroma.js)
def init(opts) do
opts
def init(opts) do
opts
@@
-33,7
+34,7
@@
defmodule Pleroma.Plugs.InstanceStatic do
for only <- @only do
at = Plug.Router.Utils.split("/")
for only <- @only do
at = Plug.Router.Utils.split("/")
- def call(
conn = %{request_path: "/" <> unquote(only) <> _}
, opts) do
+ def call(
%{request_path: "/" <> unquote(only) <> _} = conn
, opts) do
call_static(
conn,
opts,
call_static(
conn,
opts,