fix /formatting

master
Aevann 2024-02-12 18:19:05 +02:00
parent e200efba6e
commit cb45dd0782
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ def mutes(v):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required @auth_required
def formatting(v): def formatting(v):
return render_template("formatting.html", v=v, allowed_tags=allowed_tags, allowed_styles=allowed_styles) return render_template("formatting.html", v=v, allowed_tags=allowed_tags, allowed_css_properties=allowed_css_properties)
@app.get("/app") @app.get("/app")
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)

View File

@ -474,7 +474,7 @@
<h5 class="mt-4">Allowed Styles</h5> <h5 class="mt-4">Allowed Styles</h5>
<ul> <ul>
{% for style in allowed_styles %} {% for style in allowed_css_properties %}
<li>{{style}}</li> <li>{{style}}</li>
{% endfor %} {% endfor %}
</ul> </ul>