mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
refactor: replace showcase moderator with curator using NIP-19 event p-tags
Replace the hardcoded 'moderator' npub pattern with a 'curator' field that accepts any note1/nevent1/naddr1 identifier. The p-tag pubkeys from the resolved event are used as authors in a kind 31990 (#t:shakespeare) query. Client-side filter ensures only apps with a 30617 git repo reference are shown, guaranteeing the 'Edit with Shakespeare' button can be rendered. All moderation controls (approve/feature/hide/etc.) are removed from AppShowcaseCard. AppShowcase is simplified to a flat grid.
This commit is contained in:
20 files changed
+224
-891
No files matched your search
@@ -50,7 +50,7 @@ export function TestApp({ children }: TestAppProps) {
|
||||
previewDomain: 'local-shakespeare.dev',
|
||||
language: 'en',
|
||||
showcaseEnabled: true,
|
||||
showcaseModerator: 'npub1jvnpg4c6ljadf5t6ry0w9q0rnm4mksde87kglkrc993z46c39axsgq89sc',
|
||||
showcaseCurator: '',
|
||||
graspMetadata: {
|
||||
relays: [
|
||||
{ url: 'wss://git.shakespeare.diy/' },
|
||||
|
||||
Reference in new issue
Block a user