From 48d17b01de4b399692bc89ef88e1773fe43638d2 Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Tue, 22 Oct 2024 13:11:16 +0530 Subject: [PATCH] PROD-7425: Fixed user mention notification issue for new replies in discussions --- src/bp-forums/notifications.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bp-forums/notifications.php b/src/bp-forums/notifications.php index e75f1db62c..ad9c62a555 100644 --- a/src/bp-forums/notifications.php +++ b/src/bp-forums/notifications.php @@ -461,7 +461,7 @@ function bbp_buddypress_add_notification( $reply_id = 0, $topic_id = 0, $forum_i $notification_type_html = esc_html__( 'discussion', 'buddyboss' ); - $args = array( + $email_args = array( 'tokens' => array( 'usermessage' => wp_strip_all_tags( $reply_content ), 'mentioned.url' => $reply_url, @@ -480,7 +480,7 @@ function bbp_buddypress_add_notification( $reply_id = 0, $topic_id = 0, $forum_i ), ); - bp_send_email( $email_type, $user_id, $args ); + bp_send_email( $email_type, $user_id, $email_args ); } } }