get rid of avatars in mentions

This commit is contained in:
Wouter Groeneveld 2022-12-03 14:33:03 +01:00
parent 662fa300a0
commit 39ed12254f
1 changed files with 3 additions and 11 deletions

View File

@ -16,6 +16,7 @@
<div class="tootlist" style="margin-bottom: -3rem">
{{ range $mentions }}
<article class="u-comment h-cite toot">
<small>
<p class="p-content p-name">
{{ .name | safeHTML }}: {{ .content | safeHTML }}
</p>
@ -29,19 +30,10 @@
</time>
&nbsp;|&nbsp;by&nbsp;
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
{{ $name := .author.name | safeHTML }}
{{ if isset .author "picture" }}
<div class="avatar">
<img class="u-photo" loading="lazy" src="https://jam.brainbaking.com{{ .author.picture | safeHTML }}" alt="{{ $name }}" />
</div>
{{ else }}
<div class="avatar">
<img class="u-photo" loading="lazy" src="/img/avatar-anonymous.jpg" alt="{{ $name }} anonymous photo" />
</div>
{{ end }}
{{ $name }}
{{ .author.name | safeHTML }}
</a>
</div>
</small>
</article>
{{ end }}
</div>