diff --git a/index.html b/index.html index fa56030..6130288 100644 --- a/index.html +++ b/index.html @@ -220,7 +220,23 @@ params: { limit: 100 }, }); this.accounts = accountsRes.repos; - this.accountsComplete == !accountsRes.cursor; + + // weird thing with the ref pds: it *always* has a cursor on the first page + if (accountsRes.cursor) { + // so grab a second page just to see if there really is a second page + try { + const secondPage = await query('com.atproto.sync.listRepos', { + params: { limit: 1, cursor: accountsRes.cursor }, + }); + this.accountsComplete = !secondPage.cursor || secondPage.repos.length == 0; + } catch (e) { + // we're in a niche spot. ignore errors and look at the original (faulty) cursor + this.accountsComplete = !accountsRes.cursor; // 🤷‍♀️ + } + } else { + this.accountsComplete = true; + } + } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; @@ -554,145 +570,444 @@ }) - -
+ +
-

PDS Debugger

+

PDS Debugger

+
+ +
+
+ + +
+
+
+
-

Work in progress!

-
- Future features - -
-
- Limitations - -
+
+ -
+