Merge pull request #25 from Aevann1/gold

fix
remotes/1693045480750635534/spooky-22
fireworks88 2021-08-23 12:23:20 +00:00 committed by GitHub
commit c686783daf
2 changed files with 6 additions and 5 deletions

View File

@ -48,9 +48,9 @@ app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
app.config["SESSION_REFRESH_EACH_REQUEST"] = True
app.config["SLOGAN"] = environ.get("SLOGAN").strip()
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR").strip()
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME").strip() + "_" + environ.get("DEFAULT_COLOR").strip()
app.config["SLOGAN"] = environ.get("SLOGAN", "").strip()
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ff0000").strip()
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME", "light").strip() + "_" + environ.get("DEFAULT_COLOR", "ff0000").strip()
app.config["FORCE_HTTPS"] = int(environ.get("FORCE_HTTPS", 1)) if ("localhost" not in app.config["SERVER_NAME"] and "127.0.0.1" not in app.config["SERVER_NAME"]) else 0
@ -107,7 +107,7 @@ app.config["RATELIMIT_HEADERS_ENABLED"]=True
limiter = Limiter(
app,
key_func=get_ipaddr,
default_limits=["100/minute"],
#default_limits=["100/minute"],
headers_enabled=True,
strategy="fixed-window"
)

View File

@ -199,6 +199,7 @@
count: {{ sparkles }},
minAge: 500,
maxAge: 1000,
position: "afterend",
starsource: `
<svg
width="100%"
@ -306,7 +307,7 @@
{% endif %}
{% endif %}
<div id="post-text">
<div id="post-text" style="z-index: 50">
{{p.realbody(v) | safe}}
</div>