* set boost max
* reduce max and apply to boost act
* make boost position aware paid action state
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
* show sats on full view pinned comments; simplify conditions; pass topLevel as full status for comments
* comment view: show Pin instead of Boost also for own items
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* Remove gun+horse streak
* Add wallet badges
* Fix empty recv wallet detected as enabled
* Resolve badges via columns and triggers
* Fix backwards compatibility by not dropping GQL fields
* Gun+horse notifications as streaks via triggers
* Fix error while computing streaks
* Push notifications for horse+gun
* Move logic to JS via pgboss job
* Fix argument to notifyNewStreak
* Update checkWallet comment
* Refactor notification id hack
* Formatting
* Fix missing update of possibleTypes
This didn't cause any bugs because the added types have no field resolvers.
* Add user migration
* Fix missing cast to date
* Run checkWallet queries inside transaction
* commented the lines to make sure dupes are also checked on subdomains
* chore: fix lint issues
* add more than 3 custom tips, up to 7 total
* fix merge issue
* shorten logic
* don't check length for slice without need
---------
Co-authored-by: 김현희 <pygmal@gimhyeonhuiui-MacBookAir.local>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
* Refactor reminder push notifications
items should always exist and if not, we can just immediately fail imo
* Use same text for reminders in /notifications
* multi_auth cookies check + reset
* multi_auth cookies refresh
* Expire cookies after 30 days
This is the actual default for next-auth.session-token.
* Collapse issues by default
* Only refresh session cookie manually as anon
* fix mangled merge
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
* Prevent account creation if we're not signin up
* remove cookie once logged in, 24 hours expiry, comment
* adjust error messages
* check signin instead of signup
* appendHeader to avoid overwrites, fix typo, use NodeNextRequest to handle cookies
* expire cookie if signup
* fix: WebLN QR fallback for anon users
* wip: clear zap color on payment fail
* reverse clearItemMeAnonSats
* webln-specific retry bypass
* cleanup
* send WebLN payment when user is Anon AND on QR
* skip wallet checking on anon
* Use WalletError for all errors in webln.sendPayment
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* Dynamically import MathJax
* Only load if there's math content; cleanup
* avoid loading RSH on Math, we have MathJax for that; cleanup
* support multiline mathjax
---------
Co-authored-by: k00b <k00b@stacker.news>