check reply_to flag before sending replies to Facebook

This commit is contained in:
Evan Prodromou 2012-02-20 10:58:56 -05:00
parent 5b6ecef24b
commit 183ffce78f
1 changed files with 2 additions and 1 deletions

View 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;
}