all repos — honk @ 567e7587f639721053a090a619180f92d5de701f

my fork of honk

if content doesn't start with <p>, make it so
Ted Unangst tedu@tedunangst.com
Mon, 22 Apr 2019 15:05:44 -0400
commit

567e7587f639721053a090a619180f92d5de701f

parent

b2c9ce05ad226ffbe2ee77850c383e9934aa4830

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

jump to
M activity.goactivity.go

@@ -440,6 +440,9 @@ audience = newphone(audience, obj)

xid, _ = jsongetstring(obj, "id") content, _ = jsongetstring(obj, "content") summary, _ := jsongetstring(obj, "summary") + if !strings.HasPrefix(content, "<p>") { + content = "<p>" + content + } if summary != "" { content = "<p>summary: " + summary + content }