More avatar fallbacks

This commit is contained in:
southerntofu 2021-08-01 16:43:02 +02:00
parent 677326008a
commit c78b2e2c09
3 changed files with 2 additions and 2 deletions

BIN
static/no_avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -4,7 +4,7 @@
<table>
<tr>
<td>
<img src="https://{{ account.host }}{{ account.avatar.path }}" height="100"/>
<img src="{% if account.avatar %}https://{{ account.host }}{{ account.avatar.path }}{% else %}/no_avatar.png{% endif %}" height="100"/>
</td>
<td>
<b>{{ account.displayName }}</b> {{ account.name }}

View File

@ -5,7 +5,7 @@
<table>
<tr>
<td>
<img src="https://{{ video_channel.host }}{{ video_channel.avatar.path }}" height="100"/>
<img src="{% if video_channel.avatar %}https://{{ video_channel.host }}{{ video_channel.avatar.path }}{% else %}/static/no_avatar.png{% endif %}" height="100"/>
</td>
<td>
<b>{{ video_channel.displayName }}</b> {{ video_channel.name }}