Austin Kelsay 565e939245
Nostr crossposting all item types (#779)
* crosspost-item

* crosspost old items, update with nEventId

* Updating noteId encoding, cleaning up a little

* Fixing item-info condition, cleaning up

* Linting

* 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

* 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

* Basic setup for crossposting poll / link items

* post rebase fixes and Bounty and job crossposts

* Job crossposting working

* adding back accidentally removed import

* Lint / rebase

* Outsource as much crossposting logic from discussion-form into use-crossposter as possible

* Fix incorrect property for user relays, fix itemId param in updateNoteId

* Fix toast messages / error cases in use-crossposter

* Update item forms to for updated use-crossposter hook

* CrosspostDropdownItem in share updated to accomodate use-crossposter update

* Encode paramaterized replacable event id's in naddress format with nostr-tools, bounty to follw nip-99 spec

* Increase timeout on relay connection / cleaning up

* No longer crossposting job

* Add blastr, fix crosspost button in item-info for polls/discussions, finish removing job crosspostr code

* Fix toaster error, create reusable crossposterror function to surface toaster

* Cleaning up / comments / linting

* Update copy

* Simplify CrosspostdropdownItem, keep replies from being crossposted

* Moved query for missing item fields when crossposting to use-crossposter hook

* Remove unneeded param in CrosspostDropdownItem, lint

* Small fixes post rebase

* Remove unused import

* fix nostr-tools version, fix package-lock.json

* Update components/item-info.js

Co-authored-by: ekzyis <ek@stacker.news>

* Remove unused param, determine poll item type from pollCost field, add mutiny strfry relay to defaults

* Update toaster implementations, use no-cache for item query, restructure crosspostItem to use await with try catch

* crosspost info modal that lives under adv-post-form now has dynamic crossposting info

* Move determineItemType into handleEventCreation, mover item/event handing outside of do ... while loop

* Lint

* Reconcile skip method with onCancel function in toaster

* Handle failedRelays being undefined

* determine item type from router.query.type if available otherwise use item fields

* Initiliaze failerRelays as undefined but handle error explicitly

* Lint

* Fix crosspost default value for link, poll, bounty forms

---------

Co-authored-by: ekzyis <27162016+ekzyis@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-02-21 19:18:36 -06:00
..
2023-12-04 21:34:06 -06:00
2023-07-24 13:53:53 -05:00
2024-02-13 13:17:56 -06:00
2023-11-06 14:53:33 -06:00
2023-08-25 18:21:51 -05:00
2023-12-21 17:45:03 -06:00
2024-01-19 15:19:26 -06:00
2023-12-04 21:34:06 -06:00
2023-08-04 20:45:12 -05:00
2023-12-10 16:56:22 -06:00
2023-11-10 09:22:14 -06:00
2023-08-29 19:13:21 -05:00
2024-02-16 12:25:43 -06:00
2023-08-04 19:21:51 -05:00
2023-11-09 19:05:35 -06:00
2022-08-18 13:15:24 -05:00
2021-05-06 16:15:22 -05:00
2023-12-30 17:16:09 -06:00
2022-01-27 13:18:48 -06:00
2023-10-26 13:01:01 -05:00
2023-08-17 13:40:21 -05:00
2023-11-01 11:57:55 -05:00
2023-08-17 13:40:21 -05:00
2023-08-17 13:40:21 -05:00
2021-10-15 13:05:34 -05:00
2023-09-28 15:02:25 -05:00
2024-01-17 19:03:49 -06:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-10-03 14:35:53 -05:00
2024-01-08 19:02:00 -06:00
2023-12-04 21:34:06 -06:00
2024-01-17 17:39:48 -06:00
2024-01-17 19:03:49 -06:00
2023-05-06 16:51:17 -05:00
2024-01-30 18:22:40 -06:00
2023-08-25 18:43:50 -05:00
2023-12-24 16:49:41 -06:00
2023-08-25 18:21:51 -05:00
2024-02-17 15:53:36 -06:00
2023-08-04 19:21:51 -05:00
2024-02-16 13:26:15 -06:00