alps/compose.html: fix message ID
This commit is contained in:
parent
5268eba101
commit
0d1cca191b
2 changed files with 5 additions and 2 deletions
|
@ -172,6 +172,9 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error {
|
|||
}
|
||||
|
||||
h.Set("Message-Id", msg.MessageID)
|
||||
if msg.MessageID == "" {
|
||||
panic(fmt.Errorf("Attempting to send message without message ID"))
|
||||
}
|
||||
|
||||
mw, err := mail.CreateWriter(w, h)
|
||||
if err != nil {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<main class="create-update">
|
||||
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="message_id" value="{{.Message.InReplyTo}}">
|
||||
<input type="hidden" name="in_reply_to" value="{{.Message.MessageID}}">
|
||||
<input type="hidden" name="message_id" value="{{.Message.MessageID}}">
|
||||
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
|
||||
|
||||
<div class="headers no-js">
|
||||
<label>From</label>
|
||||
|
|
Loading…
Reference in a new issue