From 6e915a04437162146fc09632d9f1005d63b47ec8 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 16 Feb 2024 11:05:40 +0000 Subject: [PATCH] refactor: remove legacy pr_kind as patch_kind is used instead for a covering letter --- src/lib/kinds.ts | 2 -- src/lib/stores/PRs.ts | 32 -------------------------------- 2 files changed, 34 deletions(-) diff --git a/src/lib/kinds.ts b/src/lib/kinds.ts index b67f3e1..309d092 100644 --- a/src/lib/kinds.ts +++ b/src/lib/kinds.ts @@ -4,6 +4,4 @@ export const pr_status_kind: number = 19851985 export const repo_kind: number = 30617 -export const pr_kind: number = 318 - export const patch_kind: number = 1617 diff --git a/src/lib/stores/PRs.ts b/src/lib/stores/PRs.ts index 60b54b5..0ea76bc 100644 --- a/src/lib/stores/PRs.ts +++ b/src/lib/stores/PRs.ts @@ -41,13 +41,6 @@ export const ensurePRSummaries = async (repo_id: string) => { sub = ndk.subscribe( [ - { - kinds: [pr_kind], - '#a': repo.maintainers.map( - (m) => `${repo_kind}:${m.hexpubkey}:${repo.repo_id}` - ), - limit: 50, - }, { kinds: [patch_kind], '#a': repo.maintainers.map( @@ -97,31 +90,6 @@ export const ensurePRSummaries = async (repo_id: string) => { } }) } - if (event.kind == pr_kind) { - pr_summaries.update((prs) => { - return { - ...prs, - summaries: [ - ...prs.summaries, - { - ...summary_defaults, - id: event.id, - repo_id: repo_id, - title: event.tagValue('name') || '', - descritpion: event.tagValue('description') || '', - created_at: event.created_at, - comments: 0, - author: { - hexpubkey: event.pubkey, - loading: true, - npub: '', - }, - loading: false, - }, - ], - } - }) - } authors_unsubscribers.push( ensureUser(event.pubkey).subscribe((u: User) => {