use saved mentions when creating ap object
Ted Unangst tedu@tedunangst.com
Tue, 18 Feb 2020 15:49:10 -0500
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -1016,7 +1016,12 @@ }
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)