Commit Graph

2931 Commits

Author SHA1 Message Date
soxa 0ca9596310
enhance: collapse childless deleted comments (#1786) 2025-01-01 13:07:32 -06:00
ekzyis ba2ac2c94e
Fix ignored cancel error (#1784) 2025-01-01 11:18:54 -06:00
ekzyis 4623743c8f
fix cookie pointer override during account switching (#1783) 2024-12-31 13:05:20 -06:00
ekzyis a41d077c21
Fix muted parents not uncollapsed (#1775)
* Fix parents not uncollapsed of router.query.commentId

* Fix code comment

* Use descriptive fragment name

* Add cache to effect dependencies

not sure if needed since also works without but probably safer to have than not
2024-12-31 10:24:59 -06:00
ekzyis ba2cdc2275
Fix NostrAuth link text (#1782) 2024-12-31 08:40:30 -06:00
Riccardo Balbo 1972af1fd9
filter out POST /api/graphql spam from sndev logs (#1780)
* filter out POST /api/graphql spam from sndev logs

* don't use -P in grep
2024-12-30 18:49:54 -06:00
ekzyis bec27a5a0e
Fix user since if first item wasn't paid (#1773) 2024-12-30 16:33:17 -06:00
k00b 4262189c91 fix week interval in newsletter 2024-12-28 15:50:17 -06:00
k00b 211e3c136b fix lint 2024-12-28 11:16:59 -06:00
CypherCosmo 43129f7045
fit missing signup button spacing
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-28 10:47:57 -06:00
ekzyis c89220dbde
Add exclusion constraint to prevent duplicate items within 10m (#1747)
* Add exclusion constraint to prevent duplicate items within 10m

* Fix missing extension

* More user-friendly error message

* Use MD5 for slightly better performance

* Always use MD5 for columns of type TEXT

* shift constraint into the future

---------

Co-authored-by: k00b <k00b@stacker.news>
2024-12-28 10:33:53 -06:00
ekzyis 9783df8e3b
Require invite limit (#1748)
* Fix invite limit required

* Fix redeeming of unlimited invites

* Require invite limit
2024-12-28 09:28:05 -06:00
k00b 74f771adf4 fix #1754 2024-12-27 19:06:30 -06:00
Keyan eb22fdab41
make possibly conflicting optimistic cache updates write to each other (#1772)
* make possibly conflicting optimistic cache updates write to each other

* always update optimistic caches with cache.modifying items
2024-12-27 14:52:32 -06:00
Keyan 18445b1dc1
fix 1695 by not updating ancestors on zap (#1766)
* fix 1695 by not updating ancestors on zap

* update ancestors but only onPaid
2024-12-27 10:19:49 -06:00
Riccardo Balbo 6efa782c11
fix typo (#1764) 2024-12-26 13:10:15 -06:00
ekzyis 4ad54d6f5a
Fix typo in deposit notification (#1765) 2024-12-26 13:10:02 -06:00
k00b 1b1045fcd9 increase pull refresh distance 2024-12-23 19:50:51 -06:00
Keyan 9490520925
renerf ek and I (#1760) 2024-12-23 19:17:32 -06:00
Keyan 2fc529419e
reduce territory price with prorated refund for actives (#1761) 2024-12-23 18:50:35 -06:00
ekzyis b4352e74b4
Fix echoed message about mining blocks (#1759) 2024-12-23 13:15:37 -06:00
ekzyis 0ca37038dd
Fix upvote button shown for deleted items (#1753) 2024-12-20 18:16:24 -06:00
Keyan f5fb88342b
update cache on vault key update (#1752)
* update cache on vault key update

* Update components/vault/use-vault-configurator.js

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

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-12-20 18:15:06 -06:00
Riccardo Balbo 6ad7a3cf60
add ofelia cron for wallets and force cln to reconnect (#1746) 2024-12-19 17:02:27 -06:00
ekzyis fdbe14d195
Fix send-only wallet save after device sync enabled (#1732)
* Rename walletData to recvConfig

* Use nested upsert during wallet update
2024-12-19 11:31:11 -06:00
Riccardo Balbo e4ca2d6e07
Refine #1739 and fix regression causing nostr crossposts and login to not work (#1740)
* Refine #1739 and fix regression causing crossposts and login to not work

* use temp nostr instance for signing
2024-12-19 08:27:45 -06:00
ekzyis 4db2edb1d9
Close relay connections after each NWC call (#1739) 2024-12-19 00:11:03 -06:00
ekzyis d3a705d3ad
Fix admin edits (#1737) 2024-12-18 18:28:18 -06:00
k00b b8061a630c don't double factor trust 2024-12-18 18:27:38 -06:00
k00b 16b7160d36 increase create invoice timeout 2024-12-18 13:47:03 -06:00
k00b faeefdc498 increase send payment timeout 2024-12-18 12:09:07 -06:00
Keyan 6d4dfddae8
improve rewards (#1731)
* don't bias to early zapping so much

* untested rewards/leaderboard changes

* fix cln dep for payments

* make zap proportion scale using quad root

* fix for missing proportion on hidden users

* improve rewards cutoff criteria

* Update api/resolvers/user.js

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

* Update api/typeDefs/user.js

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

* improve switch readability

* small increase in min zap

* refresh materialized views on migration

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-12-18 10:12:11 -06:00
ekzyis 6098d39574
Fix missing logs on save (#1729)
* Fix missing logs on save

* fix receive logs wrt device sync

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-16 17:37:31 -06:00
ekzyis 62a922247d
Add timeouts to all wallet API calls (#1722)
* Add timeout to all wallet API calls

* Pass timeout signal to wallet API

* Fix timeout error message not shown on timeout

* Fix cross-fetch throws generic error message on abort

* Fix wrong method in error message

* Always use FetchTimeoutError

* Catch NDK timeout error to replace with custom timeout error

* Also use 15s for NWC connect timeout

* Add timeout delay
2024-12-16 14:05:31 -06:00
ekzyis 819d382494
Fix lightning address logs deletion (#1728) 2024-12-15 11:14:33 -06:00
ekzyis 14de23b21d
Refactor CLN function signatures (#1726) 2024-12-14 10:32:51 -06:00
ekzyis 3cdfe620d0
Refactor Blink function signatures (#1725)
This makes them consistent with function signatures of other wallets
2024-12-14 08:56:45 -06:00
ekzyis 77d22cfd77
Remove unused wallet context args (#1724) 2024-12-14 08:55:08 -06:00
Riccardo Balbo bdd24130f9
Nip46 auth with NDK (#1636)
* ndk

* fix: remove duplicated zap note event template

* don't init Nip07 signer by default

* Update wallets/nwc/server.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* nwc protocol parsing workaround

* WebSocket polyfill for worker

* increase nwc timeout

* remove NDKNip46Signer type

* fix type annotation

* move  eslint-disable camelcase to the top

* pass event args to the constructor

* fix error handling

* Update wallets/nwc/index.js

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

* nip46 auth

* style tweak, remove unmaintained signers from the list

* don't use modal

* workaround url parsing

* use kind 27235

* add kind 27235 metadata

* show suggestion after a timeout

* Update lib/nostr.js

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

* Update components/nostr-auth.js

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

* fix unrelated lnauth crash when closing ext prompt

* make ui consistent ...

* give buttons spacing

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-13 20:25:34 -06:00
ekzyis 285203889d Remove unused import 2024-12-13 21:20:51 +01:00
ekzyis a50a2c8bd1
Fix receiver fallbacks depend on fast polls (#1723) 2024-12-13 14:19:00 -06:00
Riccardo Balbo d73f6323ff
NDK (#1590)
* ndk

* fix: remove duplicated zap note event template

* don't init Nip07 signer by default

* Update wallets/nwc/server.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* nwc protocol parsing workaround

* WebSocket polyfill for worker

* increase nwc timeout

* remove NDKNip46Signer type

* fix type annotation

* move  eslint-disable camelcase to the top

* pass event args to the constructor

* fix error handling

* Update wallets/nwc/index.js

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

* Fix type annotation

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-13 13:28:36 -06:00
Riccardo Balbo 52734940a3
Bolt12 dev environment (#1702)
* lndk-eclair bolt12 test environment

* use static certs for lndk dev

* move eclair/lndk/cln to wallets profile, force lndk onto x86 platform

* fix port conflict

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-13 12:30:30 -06:00
Keyan bf541aa643
Merge pull request #1721 from stackernews/fix-missing-usage-of-timeout-error
Fix missing usage of new TimeoutError
2024-12-13 10:29:50 -06:00
ekzyis 06a3a71eb9 Use new TimeoutError 2024-12-13 16:29:00 +01:00
Keyan adfbdeddba
Merge pull request #1720 from stackernews/fix-toast-padding
Fix missing toast padding
2024-12-13 08:39:45 -06:00
ekzyis fc4303658d
Use AbortSignal.timeout + custom timeout error message (#1718)
* refactor: replace custom logic with AbortSignal.timeout

* Use custom timeout error message

* Include method and url in fetch timeout error

* Fix error not rethrown
2024-12-13 08:38:42 -06:00
Keyan e8434d07c5
Merge pull request #1719 from stackernews/fix-missing-save-error-log
Fix missing logging of sender wallet validation error
2024-12-13 08:36:37 -06:00
ekzyis 959cd1f3f4 Fix missing toast padding 2024-12-13 15:03:04 +01:00
ekzyis 64ba7a56cb Fix missing wallet error logging 2024-12-13 11:30:54 +01:00