add some re: re: re: to replies
Ted Unangst tedu@tedunangst.com
Mon, 25 Nov 2019 22:14:27 -0500
3 files changed,
9 insertions(+),
1 deletions(-)
M
activity.go
→
activity.go
@@ -1022,7 +1022,7 @@ mentions := bunchofgrapes(h.Noise)
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 }
M
docs/changelog.txt
→
docs/changelog.txt
@@ -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.
M
web.go
→
web.go
@@ -1427,6 +1427,12 @@ break
} } 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} }