From 4e9987abcafb39ea77323816929e8752290b0747 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 22 Apr 2019 15:05:44 -0400 Subject: [PATCH] if content doesn't start with

, make it so --- activity.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activity.go b/activity.go index 2640a5b..754e126 100644 --- a/activity.go +++ b/activity.go @@ -440,6 +440,9 @@ func xonkxonk(item interface{}) *Honk { xid, _ = jsongetstring(obj, "id") content, _ = jsongetstring(obj, "content") summary, _ := jsongetstring(obj, "summary") + if !strings.HasPrefix(content, "

") { + content = "

" + content + } if summary != "" { content = "

summary: " + summary + content }