mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
moderate: delete further events by banned pubkeys
This commit is contained in:
parent
c96a9a83b1
commit
5bde8aa400
@ -84,6 +84,12 @@ fn main() -> Result<(), Error> {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Delete if pubkey marked banned
|
||||
if matches!(store.get_pubkey_approval(event.pubkey()), Ok(Some(false))) {
|
||||
store.delete_event(event.id())?;
|
||||
continue;
|
||||
}
|
||||
|
||||
println!("---------------------------------------------------------------");
|
||||
println!("id={} pubkey={}", event.id(), event.pubkey());
|
||||
println!("{}", String::from_utf8_lossy(event.content()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user