if the summary isn't blank, add it to the content

This commit is contained in:
Ted Unangst 2019-04-13 13:21:32 -04:00
parent 02da8c739a
commit df1f73f45e
1 changed files with 4 additions and 0 deletions

View File

@ -407,6 +407,10 @@ func xonkxonk(item interface{}) *Honk {
audience = newphone(audience, obj) audience = newphone(audience, obj)
xid, _ = jsongetstring(obj, "id") xid, _ = jsongetstring(obj, "id")
content, _ = jsongetstring(obj, "content") content, _ = jsongetstring(obj, "content")
summary, _ := jsongetstring(obj, "content")
if summary != "" {
content = "<p>summary: " + summary + content
}
rid, _ = jsongetstring(obj, "inReplyTo") rid, _ = jsongetstring(obj, "inReplyTo")
if what == "honk" && rid != "" { if what == "honk" && rid != "" {
what = "tonk" what = "tonk"