add some re: re: re: to replies
This commit is contained in:
parent
c871ba9468
commit
577eb7068d
|
@ -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.
|
||||
|
|
6
web.go
6
web.go
|
@ -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…
Reference in New Issue