chore: adjust timing

This commit is contained in:
xuu committed 2025-03-29 19:48:06 -06:00
1 parent dab5a115cf
commit 07aba6d14a
3 files changed
+18 -18

No files matched your search

+3 -3
View File
@@ -210,12 +210,12 @@ func httpServer(ctx context.Context, app *appState) error {
preamble = add(preamble, iAmTheWatcher)
preamble = add(preamble, "")
preamble = add(preamble, "range = 1 %d", end)
preamble = add(preamble, "self = /api/plain/twts%s", mkqry(uri, limit, offset))
preamble = add(preamble, "self = /api/plain/twt%s", mkqry(uri, limit, offset))
if next := offset + int64(len(twts)); next < end {
preamble = add(preamble, "next = /api/plain/twts%s", mkqry(uri, limit, next))
preamble = add(preamble, "next = /api/plain/twt%s", mkqry(uri, limit, next))
}
if prev := offset - int64(limit); prev > 0 {
preamble = add(preamble, "prev = /api/plain/twts%s", mkqry(uri, limit, prev))
preamble = add(preamble, "prev = /api/plain/twt%s", mkqry(uri, limit, prev))
}
reg := lextwt.NewTwtRegistry(preamble, twts)