From 23ceccddfc4ea1f43adca63d9e752734a516eaea Mon Sep 17 00:00:00 2001 From: top Date: Mon, 6 Nov 2023 11:50:10 +0000 Subject: [PATCH] Change leaderboard to use id link vs username since page is cached and username can change (#216) Found by @Grue Co-authored-by: Chuck Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/216 Co-authored-by: top Co-committed-by: top --- files/templates/leaderboard_cached.html | 2 +- files/templates/user_in_table.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/leaderboard_cached.html b/files/templates/leaderboard_cached.html index fb8fbc9fb..894eacb2a 100644 --- a/files/templates/leaderboard_cached.html +++ b/files/templates/leaderboard_cached.html @@ -16,7 +16,7 @@ {{position_no}} {% include "user_in_table.html" %} {% if user_relative_url is not none %} - {{"{:,}".format(value)}} + {{"{:,}".format(value)}} {% else %} {{"{:,}".format(value)}} {% endif %} diff --git a/files/templates/user_in_table.html b/files/templates/user_in_table.html index 2c169efab..1d1ed4201 100644 --- a/files/templates/user_in_table.html +++ b/files/templates/user_in_table.html @@ -1,7 +1,7 @@ {% if user %} {% if can_see(v, user) %} {%- include 'admin/shadowbanned_tooltip.html' -%} - +
{% if user.hat_active(v)[0] -%}