fix(projects): keep hooks within file-size gate

Preserve merged project fetching behavior while keeping the module below the repository ceiling.

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
Thomas Petersen
2026-08-21 20:42:26 -04:00
parent d47338432a
commit d260d5164f

View File

@@ -175,12 +175,9 @@ export async function fetchProjects(
// is the pure, Tauri-free core of this operation. That helper's javadoc
// explains the fail-closed tombstone contract and the NIP-OA owner-deletion
// relay-side-suppression decision.
let viewerPubkey: string | undefined;
try {
viewerPubkey = (await getIdentity()).pubkey;
} catch {
viewerPubkey = undefined;
}
const viewerPubkey = await getIdentity()
.then((identity) => identity.pubkey)
.catch(() => undefined);
const fetcher: FetchProjectEventsExhaustively =
fetchExhaustively ??
((kinds, extraFilter) =>