try grabbing the name if no summary
This commit is contained in:
parent
7afc56eb39
commit
5b10e20388
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue