summaryrefslogtreecommitdiff
path: root/iris/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'iris/backend.go')
-rw-r--r--iris/backend.go4
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()