mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
206a9977a3 | ||
|
|
339acb2bc8 |
No files matched your search
@@ -14,7 +14,7 @@ export function useAuthor(pubkey: string | undefined) {
|
||||
|
||||
const [event] = await nostr.query(
|
||||
[{ kinds: [0], authors: [pubkey!], limit: 1 }],
|
||||
{ signal: AbortSignal.any([signal, AbortSignal.timeout(1500)]) },
|
||||
{ signal: AbortSignal.any([signal, AbortSignal.timeout(3000)]) },
|
||||
);
|
||||
|
||||
if (!event) {
|
||||
|
||||
@@ -19,7 +19,7 @@ export function useLoggedInAccounts() {
|
||||
queryFn: async ({ signal }) => {
|
||||
const events = await nostr.query(
|
||||
[{ kinds: [0], authors: logins.map((l) => l.pubkey) }],
|
||||
{ signal: AbortSignal.any([signal, AbortSignal.timeout(1500)]) },
|
||||
{ signal: AbortSignal.any([signal, AbortSignal.timeout(3000)]) },
|
||||
);
|
||||
|
||||
return logins.map(({ id, pubkey }): Account => {
|
||||
|
||||
Reference in new issue
Block a user