if content doesn't start with <p>, make it so
Ted Unangst tedu@tedunangst.com
Mon, 22 Apr 2019 15:05:44 -0400
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.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 }