From b949478f5083712b21fe078a334712527e2ec932 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 18 Feb 2020 15:49:10 -0500 Subject: [PATCH] use saved mentions when creating ap object --- activity.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index d0a05da..0af0eb5 100644 --- a/activity.go +++ b/activity.go @@ -1016,7 +1016,12 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) { if !h.Public { jo["directMessage"] = true } - mentions := bunchofgrapes(h.Noise) + var mentions []Mention + if len(h.Mentions) > 0 { + mentions = h.Mentions + } else { + mentions = bunchofgrapes(h.Noise) + } translate(h) redoimages(h) jo["summary"] = html.EscapeString(h.Precis)