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
..
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-08-13 14:12:18 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-08-15 12:41:51 -05:00
2023-07-24 13:53:53 -05:00
2023-07-25 13:32:48 -05:00
2023-08-04 20:45:12 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-07-25 09:14:45 -05:00
2023-08-04 19:21:51 -05:00
2023-08-23 17:44:17 -05:00
2023-07-24 13:53:53 -05:00
2023-08-16 14:39:01 -05:00
2023-07-24 13:53:53 -05:00
2022-08-18 13:15:24 -05:00
2023-08-12 04:18:32 +02:00
2021-05-06 16:15:22 -05:00
2023-08-16 17:58:43 -05:00
2023-08-11 14:12:18 -05:00
2023-08-16 17:53:51 -05:00
2023-08-16 17:53:51 -05:00
2022-01-27 13:18:48 -06:00
2023-08-13 14:12:18 -05:00
2023-08-17 13:40:21 -05:00
2023-07-25 09:14:45 -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-08-11 00:35:43 +02:00
2023-07-24 13:53:53 -05:00
2023-08-07 19:50:01 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-08-11 17:05:21 -05:00
2023-07-24 19:50:55 -05:00
2023-07-24 13:53:53 -05:00
2023-05-06 16:51:17 -05:00
2023-08-04 19:21:51 -05:00
2023-08-08 16:47:27 -05:00
2023-07-24 13:53:53 -05:00
2023-08-10 17:40:50 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-08-23 15:30:38 -05:00
2023-07-25 09:14:45 -05:00
2023-08-23 17:44:17 -05:00
2023-08-04 19:21:51 -05:00
2023-08-11 14:12:18 -05:00
2023-07-24 13:53:53 -05:00
2023-08-11 14:12:18 -05:00