]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better logging in ombqueuehandler
authorEvan Prodromou <evan@prodromou.name>
Sat, 30 Aug 2008 05:54:16 +0000 (01:54 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 30 Aug 2008 05:54:16 +0000 (01:54 -0400)
darcs-hash:20080830055416-84dde-fad0303b1d4b7265e7f01faf90e088e409c7d8b3.gz

scripts/ombqueuehandler.php

index 28c76db9a6fa4ab11e760f23d63c2ac9e91ae176..292d1395634491e71c8b03d51e03d23a9602cf5b 100755 (executable)
@@ -45,7 +45,7 @@ class OmbQueueHandler extends QueueHandler {
 
        function handle_notice($notice) {
                if ($this->is_remote($notice)) {
-                       # It's fine, we're done with it.
+                       $this->log(LOG_DEBUG, 'Ignoring remote notice ' . $notice->id);
                        return true;
                } else {
                        return omb_broadcast_remote_subscribers($notice);
@@ -57,7 +57,7 @@ class OmbQueueHandler extends QueueHandler {
 
        function is_remote($notice) {
                $user = User::staticGet($notice->profile_id);
-               return !$user;
+               return is_null($user);
        }
 }