Search results pagination not allowed when not authed

This commit is contained in:
Lim Chee Aun 2023-09-15 13:08:34 +08:00
parent f3b81bc540
commit 72438bbf06

View file

@ -87,7 +87,7 @@ function Search(props) {
if (type) { if (type) {
params.limit = LIMIT; params.limit = LIMIT;
params.type = type; params.type = type;
params.offset = offsetRef.current; if (authenticated) params.offset = offsetRef.current;
} }
try { try {
const results = await masto.v2.search(params); const results = await masto.v2.search(params);