diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-27 08:07:14 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-27 08:07:14 -0600 |
commit | 01bb982f2b844fff246611d17acb14b9c24ec126 (patch) | |
tree | 40b116143ab57c4bd3a686eed31de15aea01c83c | |
parent | ee332003dc19a480cbdd3a15f44d11bb2d6198f9 (diff) |
Don't prepend it to the message if this is a followup post.
There's no need to put "Re: previous message subject" into
every followup post.
-rw-r--r-- | iris/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iris/backend.go b/iris/backend.go index 7b1c058..fae5322 100644 --- a/iris/backend.go +++ b/iris/backend.go @@ -249,12 +249,14 @@ func msgToIris(article *nntp.Article) (*irisMsg, error) { var msg irisMsg msg.Data.Author = irisAuthor(article.Header.Get("From")) msg.Data.Timestamp = postTime - msg.Data.Message = irisBody(article.Header.Get("Subject"), string(body)) refs := article.Header.Get("References") if refs != "" { spl := strings.SplitN(refs, " ", 2) ref := fromMsgID(spl[0]) msg.Data.Parent = &ref + msg.Data.Message = string(body) + } else { + msg.Data.Message = irisBody(article.Header.Get("Subject"), string(body)) } hash, err := msg.calcHash() |