From 183ffce78f9c538cb8398d69eaca41214db86ecf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 20 Feb 2012 10:58:56 -0500 Subject: [PATCH] check reply_to flag before sending replies to Facebook --- plugins/FacebookBridge/lib/facebookclient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/FacebookBridge/lib/facebookclient.php b/plugins/FacebookBridge/lib/facebookclient.php index 00b313b6a4..d0eb18d079 100644 --- a/plugins/FacebookBridge/lib/facebookclient.php +++ b/plugins/FacebookBridge/lib/facebookclient.php @@ -176,7 +176,8 @@ class Facebookclient // If it's not a reply, or if the user WANTS to send @-replies, // then, yeah, it can go to Facebook. - if (!preg_match('/@[a-zA-Z0-9_]{1,15}\b/u', $this->notice->content) || + + if ((empty($notice->reply_to) && !preg_match('/^@[a-zA-Z0-9_]{1,15}\b/u', $notice->content)) || ($this->flink->noticesync & FOREIGN_NOTICE_SEND_REPLY)) { return true; } -- 2.39.5