Mike Dilger
b4eb4b6281
cargo clippy
2024-06-19 12:14:59 +12:00
Mike Dilger
6d4b6befc3
fix: don't subscribe discover to empty lists, and do it after config/inbox/etc.
2024-06-19 12:01:30 +12:00
Mike Dilger
6978ac38e9
Migration 38: Relay3, should_avoid() time, replaces penalty box
2024-06-19 11:23:20 +12:00
Mike Dilger
51215700c3
Don't fetch nip11 for the same relay more than once per hour
2024-06-19 09:56:56 +12:00
Mike Dilger
83f3fa3083
fix: Don't exit a minion if it still has waiting subscriptions
2024-06-18 13:29:50 +12:00
Mike Dilger
f5bcb73110
Do not AUTH to a relay again if we have already AUTHed to it (either success or failure)
2024-06-18 12:54:29 +12:00
Mike Dilger
168482bf86
Fix corked AUTH subscriptions
2024-06-18 11:59:24 +12:00
Mike Dilger
95113c43c0
Fix possible race condition in engage_minion_inner
2024-06-18 11:23:09 +12:00
Mike Dilger
9516cd5bf6
Merge branch 'master' into unstable
2024-06-18 11:07:18 +12:00
Mike Dilger
fbf74545af
fix last
2024-06-18 11:06:12 +12:00
Mike Dilger
8e73ddaa21
bugfix: Prevent a panic and return a reasonable default
2024-06-18 11:06:08 +12:00
Mike Dilger
3207baa41a
Reorder process relationships so that ReplysTo supercedes Quotes
2024-06-18 11:06:01 +12:00
Mike Dilger
6da953dcae
fix: When getting relay hint, must be among seen-on relays
2024-06-18 11:05:54 +12:00
Mike Dilger
0ec1765b58
bugfix: When adding a tag for nevent, use it's first relay as the hint
2024-06-18 11:05:24 +12:00
Mike Dilger
8b6cb7c42b
Separate long-term subscription for giftwraps (since on new DM relays)
2024-06-18 09:56:47 +12:00
Mike Dilger
58381fc494
Revert "fix: Subscribe to DMs on DM relays too"
...
This reverts commit c7e73a342d
.
Giftwrap DMs are not subscribed in this fashion. Since they only tag the recipient,
they can't be per-channel subscribed. The must be globally subscribed.
2024-06-18 09:34:15 +12:00
Mike Dilger
c7e73a342d
fix: Subscribe to DMs on DM relays too
2024-06-18 09:30:44 +12:00
Mike Dilger
10c48c7dea
fix last
2024-06-18 09:30:05 +12:00
Mike Dilger
1541b0698b
bugfix: Prevent a panic and return a reasonable default
2024-06-18 09:23:23 +12:00
Mike Dilger
cb35077c30
Storage: Migration 37: Rebuild relationships
2024-06-17 15:51:17 +12:00
Mike Dilger
1505caead3
Reorder process relationships so that ReplysTo supercedes Quotes
2024-06-17 15:48:22 +12:00
Mike Dilger
08efc89d8a
fix: When getting relay hint, must be among seen-on relays
2024-06-17 11:41:47 +12:00
Mike Dilger
482d81ba0d
bugfix: When adding a tag for nevent, use it's first relay as the hint
2024-06-17 11:33:25 +12:00
Mike Dilger
9d0b441263
Rework get_best_relays():
...
* Always yield their relay-list declared relays first
* Take in a 'min' and if not achieved, yield additional relays in score order,
including using our own if we still can't achieve the minimum
* Use a bool to indicate 'write' instead of RelayUsage
* Adjust call sites: causes changes regarding min
2024-06-17 09:04:37 +12:00
Mike Dilger
72ffea6a7c
Remove now useless comment
2024-06-15 11:09:02 +12:00
Mike Dilger
8495c13d68
Fix NIP17 chat rumor to set kind=14 (not kind=1)
2024-06-14 16:28:50 +12:00
Mike Dilger
deb75b7198
cargo fmt & clippy
2024-06-14 13:15:59 +12:00
Mike Dilger
99b259f69e
Tag recipients in NIP-17 rumors (or these giftwraps won't show up in DM channels)
2024-06-14 13:15:00 +12:00
Mike Dilger
04214b4803
When sending DM17 giftwraps, don't error out because we can't unwrap the one for the counterparty
2024-06-14 13:00:55 +12:00
Mike Dilger
8f17ba076e
Command 'giftwrap_ids' changed to 'giftwraps' where they are decrypted
2024-06-14 11:19:31 +12:00
Mike Dilger
2ab39032d1
Rework how we advertise:
...
* 4 per second, don't care if they fail or not
* Do in rank order
* Change advertise button to show how many remain
2024-06-14 09:56:45 +12:00
Mike Dilger
19acfeb90f
Do not restart minion if all jobs were advertise
2024-06-14 08:06:08 +12:00
Mike Dilger
11d2cd7bef
Tighter bounds on which relays are good for advertise
2024-06-14 08:06:08 +12:00
Mike Dilger
af11318fb5
Change advertise help text and disable advertise button while advertising
2024-06-14 08:05:40 +12:00
bu5hm4nn
312fe4be08
Merge pull request #769 from AmirH-A/refactor/gossip-bin-ui
...
[REFACTOR] gossip-bin UI
2024-06-13 06:43:20 -06:00
Bu5hm4nn
efa7dd7e8d
Restore some comments
2024-06-13 15:30:30 +03:00
Bu5hm4nn
280e6e211b
Eliminate unused variable warning
2024-06-13 15:30:10 +03:00
Bu5hm4nn
8d7d341d50
Relay Entry: Add "DM" switch
2024-06-13 11:04:57 +03:00
Mike Dilger
0adff0c9a3
cargo fmt
2024-06-13 10:06:47 +12:00
Mike Dilger
14a9f3602e
Do not return banned relay URLs from get_best_relays()
2024-06-13 10:06:47 +12:00
Bu5hm4nn
5dc397aec1
Avatar: Show ⑰ on avatar images if the person has DM relays
2024-06-12 20:24:19 +03:00
Bu5hm4nn
d018064e38
Profile Page: Show DM relays below outbox relays
2024-06-12 13:55:57 +03:00
Bu5hm4nn
3e733e864d
DM Chat Feed: Make Channel name clickable and link to Profile page
2024-06-12 13:32:57 +03:00
Bu5hm4nn
9e58dbb097
List: Always allow list actions. Fixes #734
2024-06-12 13:32:08 +03:00
Bu5hm4nn
50b0eb89c1
List: Always allow list actions. Fixes #734
2024-06-12 12:56:58 +03:00
Mike Dilger
038b78b118
Show replies to annotations under the note they annotate
2024-06-12 14:31:57 +12:00
Mike Dilger
286eb4515f
migration 36: remove and don't save records for known relays that proliferate under many paths
2024-06-12 09:37:27 +12:00
Mike Dilger
e7db13e863
More work on inbox feed
2024-06-11 10:38:17 +12:00
Mike Dilger
da818abd17
Make inbox load-more work like the others (via a count)
2024-06-11 09:22:35 +12:00
Mike Dilger
49308f5977
stop indexing "delegation" tag
2024-06-11 08:48:31 +12:00