diff --git a/src/post.rs b/src/post.rs index 5e68734..4a38f4b 100644 --- a/src/post.rs +++ b/src/post.rs @@ -121,9 +121,9 @@ fn parse_comments(json: &serde_json::Value, post_link: &str, post_author: &str, let id = val(&comment, "id"); let highlighted = id == highlighted_comment; - let body = if val(&comment, "author") == "[deleted]" && val(&comment, "body") == "[removed]" { + let body = if (val(&comment, "author") == "[deleted]" && val(&comment, "body") == "[removed]") || val(&comment, "body") == "[deleted]" { format!( - "

[removed] — view removed comment

", + "

[removed] — view removed comment

", post_link, id ) } else { diff --git a/src/utils.rs b/src/utils.rs index 642cd74..60af11b 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -573,7 +573,7 @@ pub async fn parse_post(post: &serde_json::Value) -> Post { let body = if val(post, "removed_by_category") == "moderator" { format!( - "

[removed] — view removed post

", + "

[removed] — view removed post

", permalink ) } else {