diff --git a/activity.go b/activity.go index c6396e8..96ba1cc 100644 --- a/activity.go +++ b/activity.go @@ -541,6 +541,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { var xid, rid, url, convoy string var replies []string var obj junk.Junk + waspage := false switch what { case "Delete": obj, ok = item.GetMap("object") @@ -664,6 +665,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { case "Article": fallthrough case "Page": + waspage = true obj = item what = "honk" case "Event": @@ -736,6 +738,10 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { if sens, _ := obj["sensitive"].(bool); sens && precis == "" { precis = "unspecified horror" } + if waspage { + content += fmt.Sprintf(`
%s`, url, url) + url = xid + } rid, ok = obj.GetString("inReplyTo") if !ok { if robj, ok := obj.GetMap("inReplyTo"); ok {