rename 'listbannedevents2' to 'fetchbannedevents'

This commit is contained in:
Mike Dilger 2025-03-15 08:48:10 +13:00
parent ffcbb20d74
commit 5af424ae80
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4

View File

@ -135,7 +135,7 @@ pub fn handle_inner(pubkey: Pubkey, command: Value) -> Result<Option<Value>, Err
"listallowedevents",
"listbannedevents",
"listbannedevents2",
"fetchbannedevents",
"listallowedpubkeys",
"listbannedpubkeys",
@ -288,7 +288,7 @@ pub fn handle_inner(pubkey: Pubkey, command: Value) -> Result<Option<Value>, Err
"result": ids
})))
}
"listbannedevents2" => {
"fetchbannedevents" => {
let approvals = crate::dump_event_approvals()?;
let mut results: Vec<FullEventResult> = Vec::new();
for (id, appr) in approvals.iter() {