Austin Kelsay 5737027c0f
Nostr crossposting improvements (#629)
* 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>
2023-12-19 11:48:48 -06:00
..
2023-12-08 18:30:00 -06:00
2023-02-08 13:39:53 -06:00
2023-10-04 15:10:56 -05:00
2023-10-03 18:22:56 -05:00
2023-10-23 18:16:06 -05:00
2023-09-23 20:19:35 -05:00
2021-12-05 11:37:55 -06:00
2023-10-02 19:20:13 -05:00
2023-12-08 14:02:00 -06:00
2023-12-07 16:21:13 -06:00
2023-12-08 14:31:06 -06:00