5737027c0f
* Add nostr event id field to items * crosspost-item * crosspost old items, update with nEventId * Updating noteId encoding, cleaning up a little * Fixing item-info condition, cleaning up * Linting * Spacing nit * Add createdAt variable back * Change instances of eventId to noteId * Adding upsertNoteId mutation * Cleaning up updateItem, using toasts to communivate success/failure in crosspost-item * Linting * Fix type * Move crosspost to share button, make sure only OP can crosspost * Lint * Simplify conditions * user might have no nostr extension installed Co-authored-by: ekzyis <27162016+ekzyis@users.noreply.github.com> * change upsertNoteId to updateNoteID for resolver and mutations, change isOp to mine, remove unused noteId params * Use nostr.com for linking out with noteId * lint * add noopener to window.open call * Simplify condition, throw GraphQLError --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: ekzyis <27162016+ekzyis@users.noreply.github.com>
5 lines
127 B
SQL
5 lines
127 B
SQL
ALTER TABLE "Item" ADD COLUMN "noteId" TEXT;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "Item.noteId_unique" ON "Item"("noteId");
|