]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check reply_to flag before sending replies to Facebook
authorEvan Prodromou <evan@status.net>
Mon, 20 Feb 2012 15:58:56 +0000 (10:58 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 20 Feb 2012 15:58:56 +0000 (10:58 -0500)
plugins/FacebookBridge/lib/facebookclient.php

index 00b313b6a4d9320d1c4891300a0fe08430c7eec7..d0eb18d0790b07955836191c56ab129f6768fea3 100644 (file)
@@ -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;
         }