From 72438bbf069e9e851f27a7855742ba4ac8d5d9f0 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 15 Sep 2023 13:08:34 +0800 Subject: [PATCH] Search results pagination not allowed when not authed --- src/pages/search.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/search.jsx b/src/pages/search.jsx index 597aa7af..4e6a0be1 100644 --- a/src/pages/search.jsx +++ b/src/pages/search.jsx @@ -87,7 +87,7 @@ function Search(props) { if (type) { params.limit = LIMIT; params.type = type; - params.offset = offsetRef.current; + if (authenticated) params.offset = offsetRef.current; } try { const results = await masto.v2.search(params);