Browse Source

base HTML: fix nil on emails without a text part

P.a. to 50e131244a which solved
https://todo.sr.ht/~emersion/alps/100

Closes: https://todo.sr.ht/~emersion/alps/102
master
наб 3 years ago
committed by Simon Ser
parent
commit
d60aca0e5c
No known key found for this signature in database GPG Key ID: FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      plugins/base/public/mailbox.html

+ 1
- 1
plugins/base/public/mailbox.html View File

@@ -27,7 +27,7 @@
<ul>
{{range .Messages}}
<li>
<a href="{{.TextPart.URL false}}">
<a href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}">
{{if .Envelope.Subject}}
{{.Envelope.Subject}}
{{else}}


Loading…
Cancel
Save