add some re: re: re: to replies

Ted Unangst 5 years ago
parent a11b49357a
commit b503da237e

@ -1022,7 +1022,7 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
translate(h, true)
jo["summary"] = html.EscapeString(h.Precis)
jo["content"] = h.Noise
if strings.HasPrefix(h.Precis, "DZ:") {
if h.Precis != "" {
jo["sensitive"] = true
}

@ -2,6 +2,8 @@ changelog
-- next
+ Add some re: re: re: to replies.
+ Set an avatar. If you must.
+ Try a little harder to recover from httpsig failures.

@ -1427,6 +1427,12 @@ func submithonk(w http.ResponseWriter, r *http.Request, isAPI bool) {
}
}
honk.RID = rid
if xonk.Precis != "" && honk.Precis == "" {
honk.Precis = xonk.Precis
if !(strings.HasPrefix(honk.Precis, "DZ:") || strings.HasPrefix(honk.Precis, "re: re: re: ")) {
honk.Precis = "re: " + honk.Precis
}
}
} else {
honk.Audience = []string{thewholeworld}
}

Loading…
Cancel
Save