diff --git a/files/routes/settings.py b/files/routes/settings.py index de8b33bb3..511e61d3f 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -656,7 +656,7 @@ def settings_security(v): def settings_blocks(v): return redirect(f'/@{v.username}/blocking') -@app.post("/settings/block") +@app.post("/block_user") @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) @limiter.limit("20/day", deduct_when=lambda response: response.status_code < 400) @@ -684,7 +684,7 @@ def settings_block_user(v): return {"message": f"@{user.username} blocked!"} -@app.post("/settings/unblock") +@app.post("/unblock_user") @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) diff --git a/files/templates/comments.html b/files/templates/comments.html index 5f4b269ee..1eacd7dda 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -421,9 +421,9 @@ {% endif %} {% if v.id != c.author_id and not c.ghost %} - + - + {% if (c.is_notif and c.author_id != AUTOJANNY_ID) or request.path == '/notifications/messages' %} @@ -606,9 +606,9 @@ {% endif %} {% if not c.ghost %} - + - + {% if (c.is_notif and c.author_id != AUTOJANNY_ID) or request.path == '/notifications/messages' %} diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index aa8c3ffcc..3d9f7c161 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -60,8 +60,8 @@ {% endif %} {% if v.id != p.author_id and not p.ghost %} - - + + {% endif %} {% if v.id != p.author_id and p.sub %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 4095d13e9..57525e052 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -41,8 +41,8 @@ {% else %} {% if not p.ghost %} - - + + {% endif %} {% if p.sub %} diff --git a/files/templates/userpage/banner.html b/files/templates/userpage/banner.html index c6772b32a..71e18b381 100644 --- a/files/templates/userpage/banner.html +++ b/files/templates/userpage/banner.html @@ -175,7 +175,7 @@ {%- endif %} - + {% if u.id != AUTOJANNY_ID %} @@ -468,7 +468,7 @@ {%- endif %} - + {% if u.id != AUTOJANNY_ID %} diff --git a/files/templates/userpage/blocked.html b/files/templates/userpage/blocked.html index b1fa55c19..91a8ea8b0 100644 --- a/files/templates/userpage/blocked.html +++ b/files/templates/userpage/blocked.html @@ -12,7 +12,7 @@
You are blocking @{{u.username}}.

So we aren't going to show you their profile.

- + {% endif %}