Mike Dilger
489557c468
cargo fmt
2024-09-18 12:20:31 +12:00
Mike Dilger
2b1c732744
Spam filter improved
2024-09-18 12:20:22 +12:00
Mike Dilger
60ca45fc8a
Update nostr-types (NIP-49 key security 2)
2024-09-16 19:25:40 +12:00
Michael Dilger
f45157b527
Merge pull request #857 from jadijadi/better_file_exists_stder
...
Shows full path in case of a File Exists error
2024-09-14 18:00:09 +00:00
Jadi
0a946b2597
Shows full path in case of a File Exists error
...
When the system tries to create the configuration directories,
it crashes if it fails (say because of regular file there or
a broken symlink). The out put is "File Exists" which makes
troubleshooting difficult.
With this change, gossip prints the full path of the
problematic file so the user khows where to look.
fixes #856
2024-09-14 18:43:41 +03:30
Mike Dilger
f6fadd5351
Fix regex for @tagging
2024-09-14 07:14:43 +12:00
Mike Dilger
2f894b8e56
Fix regex (tested with https://regex101.com )
2024-09-12 16:21:39 +12:00
Mike Dilger
e574bbb484
Spam filter update
2024-09-11 19:26:24 +12:00
Mike Dilger
1e6b346dae
cargo fmt
2024-09-11 19:25:27 +12:00
Mike Dilger
0bbe21bd23
Storage: Migration m41 - person.first_encountered
2024-09-11 13:57:34 +12:00
Mike Dilger
7d80bc0920
Table: add iter() and clear()
2024-09-11 13:57:34 +12:00
Mike Dilger
5d22aa8948
Clean up spam filter code
2024-09-11 11:43:00 +12:00
Mike Dilger
ca41373ac5
Implement apply_spam_filter_on_incoming_events
2024-09-11 10:57:46 +12:00
Mike Dilger
354f0bcf22
Renames
2024-09-11 10:50:37 +12:00
Mike Dilger
28dfef1912
implement apply_spam_filter_on_inbox and apply_spam_filter_on_global
2024-09-11 10:50:37 +12:00
Mike Dilger
9fa38e03b9
clean up filter.rs
2024-09-11 10:50:37 +12:00
Mike Dilger
2aede2ce15
cargo fmt
2024-09-11 10:50:37 +12:00
Mike Dilger
0ad994c63b
Don't log when spam filtering
2024-09-11 10:50:37 +12:00
Mike Dilger
e8dfe316d1
implement apply_spam_filter_on_threads
2024-09-11 10:14:17 +12:00
Mike Dilger
0bea315d8f
Add 4 settings for when to apply the spam filtering script
2024-09-11 10:00:42 +12:00
Mike Dilger
8f7104d4ee
Add "name" to filter.rhai
2024-09-11 09:46:40 +12:00
Mike Dilger
3926bde0dc
SpamSafe on by default
2024-09-11 08:05:49 +12:00
Mike Dilger
946ce04595
Even panic if we can't erase identitiy
2024-09-10 16:04:21 +12:00
Mike Dilger
ac5dceab2b
If generated keypair fails to save, immediately wipe it and show error in sidebar
2024-09-10 16:01:45 +12:00
Mike Dilger
476dc97901
cargo fmt
2024-09-07 09:24:49 +12:00
Mike Dilger
11c2dd69ba
Fix switching-feed (bring back spinner, preserve scrollbar)
2024-09-07 09:24:23 +12:00
Mike Dilger
61132be514
MIGRATION 40: relationships_by_addr3, ZapData2
2024-09-04 14:23:22 +12:00
Mike Dilger
50c1289e67
update for nostr-types: NOTIFY
2024-09-04 14:23:22 +12:00
Mike Dilger
5cf9686b47
Update nostr-types [breaking]
2024-09-04 14:23:22 +12:00
Mike Dilger
febea4c8df
Minor fixes in feed/mod.rs
2024-09-04 07:17:29 +12:00
Mike Dilger
b167ae8266
Revert "Merge branch 'minion_start_in_new' into unstable"
...
This reverts commit e33b58afd6
, reversing
changes made to cc72b2fe9f
.
2024-09-01 10:58:42 +12:00
Mike Dilger
23f41ad57a
Check for and print if we have lock contention starting a relay, NOTES:
...
I did this because gossip was hanging after a while. I've just run it again and it did
hang and there was never any lock contention here. So this was not the problem.
It spins a feed waiting on ALL and ANY feed you check, and if you close down, it hangs
at: Overlord waiting for minions to all shutdown
^C doesn't recover.
2024-08-31 14:50:53 +12:00
Mike Dilger
6165a7fb27
Rework manager to avoid holding a connected_relays Entry across an await point [FIXES STUTTERS]
2024-08-31 14:50:53 +12:00
Mike Dilger
20b4393778
Connect the minion in new() not handle() [CAUSES BIG STUTTERS/HANGS]
2024-08-31 14:50:53 +12:00
Mike Dilger
21e736c84b
Remove an optimization (for the moment at least)
2024-08-31 14:50:53 +12:00
Mike Dilger
98f6699ba6
Minion: factor out connect() as a separate function
2024-08-31 14:50:53 +12:00
Mike Dilger
cc72b2fe9f
Restructure some code to borrow less (will matter in the future)
2024-08-31 14:43:33 +12:00
Mike Dilger
1fcf64f264
Put Feed RwLocks behind Arcs (so not borrowed across await points)
2024-08-31 14:39:46 +12:00
Mike Dilger
87e195ae28
Put GLOBALS.bookmarks behind an Arc (so not borrowed across await points)
2024-08-31 14:39:46 +12:00
Mike Dilger
b062f0ba0a
Put GLOBALS.minions behind an Arc (so not borrowed across await points)
2024-08-31 14:39:46 +12:00
Mike Dilger
5eb473e715
Move an Encoding borrow so it is not held across an await point
2024-08-31 14:39:46 +12:00
Mike Dilger
525508e663
Switch to a fork of tokio::sync::watch that uses parking_lot's RwLock
2024-08-31 14:39:46 +12:00
Mike Dilger
4e2f97d012
Change gossip_identity to use Arc<parking_lot::RwLock<T>>
2024-08-31 14:39:46 +12:00
Mike Dilger
fb3a200ca0
Use parking_lot 'arc_lock' and 'send_guard' features
2024-08-31 14:27:05 +12:00
Mike Dilger
fb5f73e80c
Don't print verify errors
2024-08-31 14:12:30 +12:00
Mike Dilger
7c92bdd8f5
process: Replace closure
2024-08-30 11:11:18 +12:00
Mike Dilger
74d09c5908
LMDB: NO_SYNC (corruption only possible on file systems that don't respect write order)
2024-08-27 11:31:01 +12:00
Mike Dilger
9dad7752df
Replacement of storage closures (since async closures are not supported on rust stable yet)
2024-08-27 11:20:55 +12:00
Mike Dilger
ebc25cce67
Remove read_transact and it's usages
2024-08-27 09:32:17 +12:00
Mike Dilger
2e792370b5
Remove stray file
2024-08-27 09:28:15 +12:00