use saved mentions when creating ap object

This commit is contained in:
Ted Unangst 2020-02-18 15:49:10 -05:00
parent 5628d0376a
commit b949478f50
1 changed files with 6 additions and 1 deletions

View File

@ -1016,7 +1016,12 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
if !h.Public { if !h.Public {
jo["directMessage"] = true 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) translate(h)
redoimages(h) redoimages(h)
jo["summary"] = html.EscapeString(h.Precis) jo["summary"] = html.EscapeString(h.Precis)