try grabbing the name if no summary

This commit is contained in:
Ted Unangst 2019-07-16 03:35:04 -04:00
parent 7afc56eb39
commit 5b10e20388
1 changed files with 3 additions and 0 deletions

View File

@ -562,6 +562,9 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
audience = newphone(audience, obj) audience = newphone(audience, obj)
xid, _ = obj.GetString("id") xid, _ = obj.GetString("id")
precis, _ = obj.GetString("summary") precis, _ = obj.GetString("summary")
if precis == "" {
precis, _ = obj.GetString("name")
}
content, _ = obj.GetString("content") content, _ = obj.GetString("content")
if !strings.HasPrefix(content, "<p>") { if !strings.HasPrefix(content, "<p>") {
content = "<p>" + content content = "<p>" + content