From 6cc2647fdf28951d4da3d18df8ae7aa9931f2031 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 14 Feb 2024 11:15:25 -0500 Subject: [PATCH] Forgot comment report. --- crates/apub/src/activities/community/report.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/apub/src/activities/community/report.rs b/crates/apub/src/activities/community/report.rs index 97631d3c5..6b1fce066 100644 --- a/crates/apub/src/activities/community/report.rs +++ b/crates/apub/src/activities/community/report.rs @@ -14,7 +14,10 @@ use activitypub_federation::{ kinds::activity::FlagType, traits::{ActivityHandler, Actor}, }; -use lemmy_api_common::{context::LemmyContext, utils::check_post_deleted_or_removed}; +use lemmy_api_common::{ + context::LemmyContext, + utils::{check_comment_deleted_or_removed, check_post_deleted_or_removed}, +}; use lemmy_db_schema::{ source::{ activity::ActivitySendTargets, @@ -117,6 +120,8 @@ impl ActivityHandler for Report { PostReport::report(&mut context.pool(), &report_form).await?; } PostOrComment::Comment(comment) => { + check_comment_deleted_or_removed(&comment)?; + let report_form = CommentReportForm { creator_id: actor.id, comment_id: comment.id,