X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FFacebookBridge%2Flib%2Ffacebookqueuehandler.php;fp=plugins%2FFacebookBridge%2Flib%2Ffacebookqueuehandler.php;h=2d2df343d9153097797c959006fca03d843bb2f6;hb=4160a3fb730113f3d712bd777884c4b0482f6df1;hp=1e82ff01b1845f43b956dbd0bc4415defa3da1ac;hpb=abd90bbdf562614755802885dfb5673645df8575;p=quix0rs-gnu-social.git diff --git a/plugins/FacebookBridge/lib/facebookqueuehandler.php b/plugins/FacebookBridge/lib/facebookqueuehandler.php index 1e82ff01b1..2d2df343d9 100644 --- a/plugins/FacebookBridge/lib/facebookqueuehandler.php +++ b/plugins/FacebookBridge/lib/facebookqueuehandler.php @@ -40,22 +40,9 @@ class FacebookQueueHandler extends QueueHandler function handle($notice) { - if ($this->_isLocal($notice)) { + if ($notice->isLocal()) { return Facebookclient::facebookBroadcastNotice($notice); } return true; } - - /** - * Determine whether the notice was locally created - * - * @param Notice $notice the notice - * - * @return boolean locality - */ - function _isLocal($notice) - { - return ($notice->is_local == Notice::LOCAL_PUBLIC || - $notice->is_local == Notice::LOCAL_NONPUBLIC); - } }