Commit Graph

589 Commits

Author SHA1 Message Date
Mike Dilger
8553916cbf Relays: don't sort by rank, or they move when you click them 2023-02-01 19:52:01 +13:00
Mike Dilger
7d2f648e30 cargo clippy & cargo fmt 2023-02-01 19:42:40 +13:00
Mike Dilger
06eebd3564 Merge branch 'future' 2023-02-01 19:41:03 +13:00
Mike Dilger
e5cb7bde31 Relay management 2023-02-01 19:40:13 +13:00
Mike Dilger
164fb30dd0 Fix: minion to update globals data when updating database data (2 places) 2023-02-01 19:39:33 +13:00
Mike Dilger
e0bd21ed7d Schema 19 - relay.rank not null 2023-02-01 19:38:15 +13:00
Mike Dilger
517a8bdcab Fix excessive closing of websockets 2023-02-01 11:34:49 +13:00
Mike Dilger
9eb43a5064 Fix excessive closing of websockets 2023-02-01 11:18:39 +13:00
Mike Dilger
c3dfc4b897 Fix two max relays issues 2023-02-01 10:42:53 +13:00
Mike Dilger
38814c09e0 Fix: Don't pick more relays when maximum is hit 2023-02-01 09:48:16 +13:00
Mike Dilger
444f8febfe Minions should only listen for the pubkeys that were assigned by the RelayPicker. NOTE: we lost a feature:
When changing your following list, you have to restart gossip again. It doesn't resubscribe.
2023-01-31 21:18:53 +13:00
Mike Dilger
d4847a934e Before repicking, refresh person-relay scores in the picker 2023-01-31 21:13:49 +13:00
Mike Dilger
c8c9d394ee Rewrite relay picker: better, but we left some things incomplete:
This is better because when a relay fails us, we try other relays to recover.

But our handling is still incomplete:

* The messages to the Relays _still_ don't include the particular pubkeys to subscribe to, so they do all followed
* Person Relay scores never get refreshed as that information changes
* When your following list changes, this retained GLOBALS.relay_picker never assigns new people to existing minions
2023-01-31 20:59:17 +13:00
Mike Dilger
afc8da330f SCHEMA 18: delete records with urls that start or end in whitespace 2023-01-31 20:42:02 +13:00
Mike Dilger
66fc30d450 improve tracing output 2023-01-31 20:26:27 +13:00
Mike Dilger
d600250cb6 Simplification 2023-01-31 17:16:07 +13:00
Mike Dilger
c9d97f2c51 use relay_picker::pick_relays() in Overlord [still only being used at startup] 2023-01-31 09:32:19 +13:00
Mike Dilger
19dcfbb29a relay_picker::pick_relays() function to handle the looping aspect 2023-01-31 09:28:05 +13:00
Mike Dilger
cdc12e8fca RelayPicker::take(), to force it to choose a particular relay next 2023-01-31 09:16:59 +13:00
Mike Dilger
4a0eb4804b update nostr-types [fixes Url case issue] 2023-01-31 07:56:34 +13:00
Mike Dilger
345e2de88e Do not exit when encountering a bad relay URL in the database, just skip that row 2023-01-31 07:55:03 +13:00
Mike Dilger
f38cc472c8 SCHEMA 17 - crude deletion of relays ending in slash (it's not critical data) 2023-01-30 15:20:13 +13:00
Mike Dilger
9527fa78d6 MAJOR update of URL handling 2023-01-30 15:20:13 +13:00
Mike Dilger
2599282cb5 update nostr-types 2023-01-30 14:49:05 +13:00
Mike Dilger
64ff44a60d README remove call out of Damus client as it's not the only one to handle lightning tips anymore 2023-01-30 08:55:50 +13:00
Mike Dilger
2119ad3dd1 video links in README 2023-01-30 08:54:41 +13:00
Michael Dilger
6d4508109c
Merge pull request #177 from striezel-stash/actions-rs-replacement
Replace unmaintained actions-rs actions in CI workflows
2023-01-30 07:16:09 +13:00
Dirk Stolle
dddcc64b4a Replace unmaintained actions-rs actions in CI workflows
Basically all of the actions-rs/* actions are unmaintained. See
<https://github.com/actions-rs/toolchain/issues/216> for more
information. Due to their age they generate several warnings in
CI runs.

To get rid of those warnings the `actions-rs/toolchain` is
replaced by the newer `dtolnay/rust-toolchain`.
2023-01-29 15:38:56 +01:00
Mike Dilger
f7010fbd7c Process ContactList (kind=3) contents to make person-relay associations with 'write' entries of 2023-01-29 12:15:58 +13:00
Mike Dilger
e2a5e95878 update nostr-types 2023-01-29 11:43:14 +13:00
Mike Dilger
4beac4f477 Allow events up to 128 kb (some contact lists are long, and those will be subscribed to soon) 2023-01-29 11:42:56 +13:00
Michael Dilger
ce53dc34b1
Merge pull request #175 from striezel-stash/fix-typos
Fix some typos
2023-01-29 11:41:37 +13:00
Dirk Stolle
1065566b29 Fix some typos 2023-01-28 22:44:31 +01:00
Mike Dilger
d9d0bf2c7a Clean up You page and show QR codes 2023-01-29 09:16:20 +13:00
Mike Dilger
5f0f101f85 Show metadata time of on your metadata page 2023-01-29 08:48:52 +13:00
Mike Dilger
a6977e2f46 Add a few more emojis 2023-01-29 03:02:31 +13:00
Mike Dilger
f78538a905 Switch to native-tls (possibly more reliable, we had one bug report re: webpki) 2023-01-29 02:59:29 +13:00
Mike Dilger
f314c602e7 Style tweak to bring back color of sliders (which uses same value as button fill color, unfortunately) 2023-01-28 20:28:24 +13:00
Mike Dilger
01e8c75376 Rudimentary emoji picker 2023-01-28 19:40:49 +13:00
Mike Dilger
bc674a3d28 Remove from the list of things we don't support a few that we now do support 2023-01-28 18:57:40 +13:00
Mike Dilger
6c3b3b6446 Font sizing and spacings 2023-01-28 18:42:24 +13:00
Mike Dilger
63c75f5b72 Remove now-redundant buttons on person page; add "View their posts" to the person menu 2023-01-28 18:33:46 +13:00
Mike Dilger
cc475f71b3 Replace a panic with a status message 2023-01-28 18:26:04 +13:00
Mike Dilger
16fc87a8f7 Style changes; Person menu separated from Note menu 2023-01-28 17:54:45 +13:00
Michael Dilger
84cd67b932
Merge pull request #173 from thesimplekid/nprofile-note
remove nprofile unsupported note in help
2023-01-28 16:57:15 +13:00
thesimplekid
755f00aac4
remove nprofile unsupported note 2023-01-27 21:14:38 -05:00
Mike Dilger
52ce331ab6 Less feathering, sharper images (but less anti-aliasing) 2023-01-28 14:41:01 +13:00
Mike Dilger
a928844297 cargo update 2023-01-28 14:00:16 +13:00
Mike Dilger
249bcbebc3 QR codes on Person page for npub and lud06 2023-01-28 13:12:48 +13:00
Mike Dilger
72ae298d9a refactor QR code rendering, so it's easily useable elsewhere 2023-01-28 13:03:20 +13:00