From 3562c42e3cba4777ce3fda602611b4e1588e92b2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 24 Dec 2019 08:17:06 -0500 Subject: [PATCH] handle objects with both name and summary --- activity.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/activity.go b/activity.go index 4d1b453..5442c72 100644 --- a/activity.go +++ b/activity.go @@ -660,8 +660,11 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { } xid, _ = obj.GetString("id") precis, _ = obj.GetString("summary") - if precis == "" { - precis, _ = obj.GetString("name") + if name, ok := obj.GetString("name"); ok { + if precis != "" { + precis = "\n" + precis + } + precis = name + precis } content, _ = obj.GetString("content") if !strings.HasPrefix(content, "

") {