all repos — honk @ d61c72d0643cb9eb62a047b367bda78d8854ac30

my fork of honk

a qutie went missing, find out why
Ted Unangst tedu@tedunangst.com
Tue, 27 Feb 2024 14:17:18 -0500
commit

d61c72d0643cb9eb62a047b367bda78d8854ac30

parent

d9eed2e369ea2d8abb984d61131420c2c6f5577c

1 files changed, 10 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -597,17 +597,26 @@ } else if re_masto1ink.MatchString(m) {

tryit = true } if tryit { + dlog.Printf("trying to get a quote from %s", m) var prefix string if m == qurl { prefix += fmt.Sprintf("<p><a href=\"%s\">%s</a>", m, m) } var final string if x := getxonk(user.ID, m); x != nil { + dlog.Printf("already had it") content = fmt.Sprintf("%s%s<blockquote>%s</blockquote>", content, prefix, x.Noise) - } else if j, err := GetJunkTimeout(user.ID, m, fastTimeout*time.Second, &final); err == nil { + } else { + j, err := GetJunkTimeout(user.ID, m, fastTimeout*time.Second, &final) + if err != nil { + dlog.Printf("unable to fetch quote: %s", err) + continue + } q, ok := j.GetString("content") if ok { content = fmt.Sprintf("%s%s<blockquote>%s</blockquote>", content, prefix, q) + } else { + dlog.Printf("apparently no content") } prevdepth := depth depth = maxdepth