summaryrefslogtreecommitdiff
path: root/lib/ping.php
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2010-01-07 20:59:31 +0000
committerCiaran Gultnieks <ciaran@ciarang.com>2010-01-07 20:59:31 +0000
commitdeeaafe71239597878cb3fd78aa66314745796a3 (patch)
tree62185263ebdc7dc58ec69769c4d48a2c0ee8ff71 /lib/ping.php
parente53512cd2c2180f81fc7317de9df09a140099aa3 (diff)
Fixes to bugs where non-local messages were being wrong put in the public timeline and public xmpp feed
Diffstat (limited to 'lib/ping.php')
-rw-r--r--lib/ping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ping.php b/lib/ping.php
index 5698c4038..735af9ef1 100644
--- a/lib/ping.php
+++ b/lib/ping.php
@@ -21,7 +21,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
function ping_broadcast_notice($notice) {
- if (!$notice->is_local) {
+ if ($notice->is_local != Notice::LOCAL_PUBLIC && $notice->is_local != Notice::LOCAL_NONPUBLIC) {
return true;
}
@@ -115,4 +115,4 @@ function ping_notice_tags($notice) {
return implode('|', $tags);
}
return NULL;
-} \ No newline at end of file
+}