Use /userid/ links instead of /user/username.

This commit is contained in:
voussoir 2021-10-23 17:20:14 -07:00
parent e2a97cef9c
commit 7e0c3e2626
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
4 changed files with 4 additions and 4 deletions

View file

@ -246,7 +246,7 @@ const ALBUM_ID = undefined;
{% set author = album.get_author() %}
{% if author is not none %}
<p>Author: <a href="/user/{{author.username}}">{{author.display_name}}</a></p>
<p>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></p>
{% endif %}
<p>Created on <span title="{{album.created|int|timestamp_to_8601}}">{{album.created|timestamp_to_naturaldate}}.</span></p>

View file

@ -4,7 +4,7 @@
<a class="header_element" href="/search">Search</a>
<a class="header_element" href="/tags">Tags</a>
{% if session.user %}
<a class="header_element dynamic_user_display_name" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
<a class="header_element dynamic_user_display_name" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
<button id="logout_button" class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button>
{% else %}
<a class="header_element" href="/login">Log in</a>

View file

@ -178,7 +178,7 @@
<ul id="metadata">
{% set author = photo.get_author() %}
{% if author is not none %}
<li>Author: <a href="/user/{{author.username}}">{{author.display_name}}</a></li>
<li>Author: <a href="/userid/{{author.id}}">{{author.display_name}}</a></li>
{% endif %}
{% if photo.width %}
<li title="{{photo.area}} px">Dimensions: {{photo.width}}x{{photo.height}} px</li>

View file

@ -73,7 +73,7 @@ body > .nice_link
<a class="nice_link" href="/albums">Browse albums</a>
<a class="nice_link" href="/bookmarks">Bookmarks</a>
{% if session.user %}
<a class="nice_link" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
<a class="nice_link" href="/userid/{{session.user.id}}">{{session.user.display_name}}</a>
{% else %}
<a class="nice_link" href="/login">Log in</a>
{% endif %}