disconnect-fix
This commit is contained in:
@@ -109,11 +109,6 @@ pub async fn is_fitting(
|
||||
payload: HashMap<String, String>,
|
||||
) -> Result<bool, &'static str> {
|
||||
match &kind[0..9] {
|
||||
"new_follo" => {
|
||||
// payload is Author, kind is new_follower:<author_id>
|
||||
let author_id = kind.split(":").last().unwrap();
|
||||
Ok(author_id.to_string() == listener_id.to_string())
|
||||
}
|
||||
"new_react" => {
|
||||
// payload is Reaction, kind is new_reaction<reaction_kind>
|
||||
let shout_id = payload.get("shout").unwrap();
|
||||
|
Reference in New Issue
Block a user