all repos — honk @ fb9695ebc3dff7aacc1681e932d98cb300f4f0eb

my fork of honk

add some re: re: re: to replies
Ted Unangst tedu@tedunangst.com
Mon, 25 Nov 2019 22:14:27 -0500
commit

fb9695ebc3dff7aacc1681e932d98cb300f4f0eb

parent

c1a6c34f08818a19ad773afacf2b9edce618b96e

3 files changed, 9 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.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.txtdocs/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.goweb.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} }