From 48632a7e1bef70caab894cb67c90a469fc969ef1 Mon Sep 17 00:00:00 2001 From: Matt Wiebe Date: Wed, 2 Aug 2023 12:03:32 -0500 Subject: [PATCH] Add inbox create/react actions (#387) This will help us to debug why comments fail --- includes/rest/class-inbox.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/rest/class-inbox.php b/includes/rest/class-inbox.php index 966625c..38969f7 100644 --- a/includes/rest/class-inbox.php +++ b/includes/rest/class-inbox.php @@ -368,6 +368,8 @@ class Inbox { // re-add flood control \add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); + + do_action( 'activitypub_handled_reaction', $object, $user_id, $state, $commentdata ); } /** @@ -423,6 +425,8 @@ class Inbox { // re-add flood control \add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); + + do_action( 'activitypub_handled_create', $object, $user_id, $state, $commentdata ); } /**