Don't require approval on kinds 0 and 3

This commit is contained in:
Mike Dilger 2024-08-22 07:01:22 +12:00
parent 4d300eb12a
commit d258dd4110

View File

@ -52,6 +52,11 @@ fn main() -> Result<(), Error> {
continue;
}
// Skip config data
if event.kind() == Kind::from(3) || event.kind() == Kind::from(0) {
continue;
}
// Skip if the author is authorized user
if config.user_keys.contains(&event.pubkey()) {
continue;