This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / knot2 / crates / knot-cobs / src / blocklist.rs
412 B 20 lines
1use crate::grant::grant_set_cob; 2 3grant_set_cob! { 4 change = BlocklistChange, 5 cob = BlocklistCob, 6 state = Blocklist, 7 type_name = "sh.tangled.knot.block", 8 add = block_account, 9 remove = unblock_account, 10} 11 12#[cfg(test)] 13mod tests { 14 use knot_cob::ChangePayload; 15 16 #[test] 17 fn type_name_is_stable() { 18 assert_eq!(super::BlocklistChange::TYPE, "sh.tangled.knot.block"); 19 } 20}