stacker.news/lib
SatsAllDay 3da395a792
multiple forwards on a post (#403)
* multiple forwards on a post

first phase of the multi-forward support

* update the graphql mutation for discussion posts to accept and validate multiple forwards

* update the discussion form to allow multiple forwards in the UI

* start working on db schema changes

* uncomment db schema, add migration to create the new model, and update create_item, update_item
stored procedures

* Propagate updates from discussion to poll, link, and bounty forms

Update the create, update poll sql functions for multi forward support

* Update gql, typedefs, and resolver to return forwarded users in items responses

* UI changes to show multiple forward recipients, and conditional upvote logic changes

* Update notification text to reflect multiple forwards upon vote action

* Disallow duplicate stacker entries

* reduce duplication in populating adv-post-form initial values

* Update item_act sql function to implement multi-way forwarding

* Update referral functions to scale referral bonuses for forwarded users

* Update notification text to reflect non-100% forwarded sats cases

* Update wallet history sql queries to accommodate multi-forward use cases

* Block zaps for posts you are forwarded zaps at the API layer, in addition
to in the UI

* Delete fwdUserId column from Item table as part of migration

* Fix how we calculate stacked sats after partial forwards in wallet history

* Exclude entries from wallet history that are 0 stacked sats from posts with 100% forwarded to other users

* Fix wallet history query for forwarded stacked sats to be scaled by the fwd pct

* Reduce duplication in adv post form, and do some style tweaks for better layout

* Use MAX_FORWARDS constants

* Address various PR feedback

* first enhancement pass

* enhancement pass too

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-08-23 17:44:17 -05:00
..
apollo.js Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
clicks.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
constants.js multiple forwards on a post (#403) 2023-08-23 17:44:17 -05:00
currency.js reuse validation on server 2023-02-08 13:39:53 -06:00
cursor.js fix new freebie bug and first page detection 2021-09-09 11:44:01 -05:00
form.js multiple forwards on a post (#403) 2023-08-23 17:44:17 -05:00
format.js Singular/Plural "Sats" labels (#380) 2023-08-08 16:04:06 -05:00
item.js Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
lnurl.js check invoice description hash against lnurl pay metadata 2022-05-19 09:22:25 -05:00
md.js fix back button behavior on select navigation 2023-07-25 15:29:45 -05:00
new-comments.js subtle highlight of new comments 2023-08-06 14:18:40 -05:00
nostr.js Notifications with nostr info (#368) 2023-08-08 13:19:31 -05:00
rainbow.js new bolt 2021-12-05 11:37:55 -06:00
rand.js use rand lightning animation when not logged in 2021-07-16 11:47:18 -05:00
remark-mention.js fix mdast find and replace imports 2023-07-24 20:03:56 -05:00
remark-sub.js fix mdast find and replace imports 2023-07-24 20:03:56 -05:00
rss.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
time.js Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
url.js Render images without markdown and use image proxy (#245) 2023-07-12 19:10:01 -05:00
validate.js multiple forwards on a post (#403) 2023-08-23 17:44:17 -05:00