tumblrandom: fix some final issues

This commit is contained in:
Luke Granger-Brown 2024-09-14 13:28:45 +00:00
parent 93efb988cb
commit 6b19891c5e

View file

@ -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, `<!DOCTYPE html>
<html>
<head>
@ -286,8 +289,8 @@ func (a *app) refreshLikes(rw http.ResponseWriter, r *http.Request) {
</head>
<body>
<form method="POST" id="theForm">
<input type="hidden" name="url_suffix" value="%q">
<input type="hidden" name="refresh_session" value="%q">
<input type="hidden" name="url_suffix" value=%q>
<input type="hidden" name="refresh_session" value=%q>
<input type="submit" id="theSubmit">
</form>
<script>