Commit Graph

3743 Commits

Author SHA1 Message Date
Mike Dilger
ca740643d0 Merge branch 'spam' into unstable 2024-09-11 10:58:17 +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
64ae9a4ba3 Merge remote-tracking branch 'dtonon/move-web-share' into unstable 2024-09-11 08:46:21 +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
e33b58afd6 Merge branch 'minion_start_in_new' into unstable 2024-08-31 15:04:29 +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
dtonon
ac7d114c23 Move the web sharing outside the copy menu 2024-08-28 19:57:15 +02:00
dtonon
24bc41f1b5 Uniform height of buttons to textedit 2024-08-28 16:43:45 +02:00
dtonon
f82d3c71e6 Uniform corner's radius of textedit to buttons (4px) 2024-08-28 16:42:28 +02: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
Mike Dilger
203d04d37a Storage now created after static init; Storage.env no longer needs OnceLock 2024-08-24 12:54:51 +12:00
Mike Dilger
00c0c903a5 Storage is now behind a OnceLock -- Call with GLOBALS.db() 2024-08-24 12:44:24 +12:00
Mike Dilger
72a9978ec4 Comments about fns not to call from inside the tokio runtime 2024-08-23 14:53:56 +12:00
Mike Dilger
7e1d234f0e Heed: compile with read-txn-no-tls so that RoTxn is Send (NO_TLS flag was already being set) 2024-08-23 11:17:34 +12:00
Mike Dilger
5eab9f34fb Store runtime in GLOBALS 2024-08-23 06:46:44 +12:00
Mike Dilger
4e9f4e2605 rename nip46.rs to nostr_connect_server.rs 2024-08-22 10:58:18 +12:00