stacker.news/pages
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
..
[name] territories 2023-12-04 21:34:06 -06:00
api Add Opt-in to Display Linked Accounts in Profile (#826) 2024-02-14 13:33:31 -06:00
auth upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
invites Force SSR to include CSP nonces on page reload (#818) 2024-02-13 16:40:26 -06:00
invoices Force SSR to include CSP nonces on page reload (#818) 2024-02-13 16:40:26 -06:00
items/[id] territories 2023-12-04 21:34:06 -06:00
referrals fix custom dates to use ms since epoch 2023-11-14 10:23:44 -06:00
rewards remove snow 2023-12-25 18:05:45 -06:00
settings Nostr crossposting all item types (#779) 2024-02-21 19:18:36 -06:00
stackers improve stat gathering 2024-01-19 15:19:26 -06:00
withdrawals auto canceling bolt11s from lnd when auto dropped from DB (#793) 2024-02-14 17:31:25 -06:00
~ add numbering to top stacker and territories 2024-02-14 15:06:42 -06:00
404.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
500.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
_app.js remove debug comment 2024-02-14 09:17:21 -06:00
_document.js Add Content Security Policy headers (#805) 2024-02-13 13:10:06 -06:00
_error.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
email.js Force SSR to include CSP nonces on page reload (#818) 2024-02-13 16:40:26 -06:00
live.js Force SSR to include CSP nonces on page reload (#818) 2024-02-13 16:40:26 -06:00
login.js show errors on settings during auth linking 2023-07-30 15:39:18 -05:00
notifications.js Notification badges (#595) 2023-11-08 18:17:01 -06:00
offline.js improve service worker asset precaching and offline page 2023-07-28 10:57:12 -05:00
satistics.js autowithdraw to lightning address 2024-01-11 13:10:07 -06:00
share.js Service worker rework, Web Target Share API & Web Push API (#324) 2023-07-04 14:36:07 -05:00
signup.js upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
territory.js link to territory FAQ 2023-12-20 17:11:07 -06:00
wallet.js add ids to all toasts to help id rogue toasts 2024-01-28 13:26:32 -06:00