make default avatar use the avatars table

This commit is contained in:
2025-05-22 02:30:59 +03:00
parent 16127983ab
commit 9438d3704b
8 changed files with 47 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<div class="post" id="post-<%= post.id %>">
<div class="usercard">
<a href="<%= url_for("user", {username = post.username}) %>" style="display: contents;">
<img src="<%= post.avatar_path or "/avatars/default.webp" %>" class="avatar">
<img src="<%= post.avatar_path %>" class="avatar">
</a>
<a href="<%= url_for("user", {username = post.username}) %>" class="username-link"><%= post.username %></a>
<% if post.status ~= "" then %>