From 6b19891c5ef2c6455103f39da9f18daca34b6b57 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 14 Sep 2024 13:28:45 +0000 Subject: [PATCH] tumblrandom: fix some final issues --- go/tumblrandom/tumblrandom.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/go/tumblrandom/tumblrandom.go b/go/tumblrandom/tumblrandom.go index 3811448d62..f8df6f984c 100644 --- a/go/tumblrandom/tumblrandom.go +++ b/go/tumblrandom/tumblrandom.go @@ -279,6 +279,9 @@ func (a *app) refreshLikes(rw http.ResponseWriter, r *http.Request) { urlSuffix = lr.Response.Links.Next.Href if urlSuffix != "" { + refreshBufMu.Lock() + refreshBuf[refreshSess] = likes + refreshBufMu.Unlock() fmt.Fprintf(rw, ` @@ -286,8 +289,8 @@ func (a *app) refreshLikes(rw http.ResponseWriter, r *http.Request) {
- - + +