user show_name to avoid blank name

This commit is contained in:
John Xina 2023-07-14 10:06:58 +08:00
parent d9a4e79a67
commit e04a4eff55
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@
{% endif %} {% endif %}
</div> </div>
<div class="participants"> <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>💬<a href=""> API UNAVAILABLE </a></div> -->
</div> </div>
</div> </div>

View File

@ -32,7 +32,7 @@
</div> </div>
<div> <div>
<div class="userinfo"> <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 %} {% if p.is_thread_author %}
<span class="tag tag-blue">楼主</span> <span class="tag tag-blue">楼主</span>
{% endif %} {% endif %}
@ -49,7 +49,7 @@
<img class="avatar" src="/proxy/avatar/{{ comment.user.portrait }}"> <img class="avatar" src="/proxy/avatar/{{ comment.user.portrait }}">
<div> <div>
<div class="userinfo"> <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>
<div class="content"> <div class="content">
{{ comment.contents|translate(comment.reply_to_id)|safe }} {{ comment.contents|translate(comment.reply_to_id)|safe }}