From e04a4eff55a4829ce67ae7a24d1e739ac544c15b Mon Sep 17 00:00:00 2001 From: John Xina <bingchilling@riseup.net> Date: Fri, 14 Jul 2023 10:06:58 +0800 Subject: [PATCH] user show_name to avoid blank name --- templates/bar.html | 2 +- templates/thread.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/bar.html b/templates/bar.html index a999145..e0ab08c 100644 --- a/templates/bar.html +++ b/templates/bar.html @@ -52,7 +52,7 @@ {% endif %} </div> <div class="participants"> - <div>🧑<a href="">{{ t.user.user_name }}</a></div> + <div>🧑<a href="">{{ t.user.show_name }}</a></div> <!-- <div>💬<a href=""> API UNAVAILABLE </a></div> --> </div> </div> diff --git a/templates/thread.html b/templates/thread.html index 3b88050..3ab2f02 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -32,7 +32,7 @@ </div> <div> <div class="userinfo"> - <a href="/home/main?id={{ p.user.user_id }}">{{ p.user.user_name }}</a> + <a href="/home/main?id={{ p.user.user_id }}">{{ p.user.show_name }}</a> {% if p.is_thread_author %} <span class="tag tag-blue">楼主</span> {% endif %} @@ -49,7 +49,7 @@ <img class="avatar" src="/proxy/avatar/{{ comment.user.portrait }}"> <div> <div class="userinfo"> - <a href="/home/main?id={{ comment.user.user_id }}">{{ comment.user.user_name }}</a> + <a href="/home/main?id={{ comment.user.user_id }}">{{ comment.user.show_name }}</a> </div> <div class="content"> {{ comment.contents|translate(comment.reply_to_id)|safe }} -- GitLab