mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Fix: webmentions: support "likes" with no author
Sometimes an author name isn't parsed; switch to title in those cases.
This commit is contained in:
parent
8de296971f
commit
981babb95d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
<time datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $webmention.created_at }}">{{ dateFormat "2006-01-02" $webmention.created_at }}</time>
|
||||
<br>
|
||||
{{ if (eq $webmention.type "like") -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.author_name }}</a> liked this
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ if $webmention.author_name }}{{ $webmention.author_name }}{{ else }}{{ $webmention.title }}{{ end }}</a> liked this
|
||||
{{else -}}
|
||||
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.title }}</a>
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue