]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only show local notices or (remote notices if they're supposed to be shown)
authorCraig Andrews <candrews@integralblue.com>
Mon, 16 Nov 2009 21:19:27 +0000 (16:19 -0500)
committerCraig Andrews <candrews@integralblue.com>
Mon, 16 Nov 2009 21:19:27 +0000 (16:19 -0500)
plugins/Realtime/RealtimePlugin.php

index 0f0d0f9f42309b134298220d3fc1d148e3ae2ed7..a21c33b103ef3546ceca40f79ef046cb7a7ab4df 100644 (file)
@@ -132,8 +132,8 @@ class RealtimePlugin extends Plugin
 
         // Add to the public timeline
 
-        if ($notice->is_local ||
-            ($notice->is_local == 0 && !common_config('public', 'localonly'))) {
+        if ($notice->is_local == Notice::LOCAL_PUBLIC ||
+            ($notice->is_local == Notice::REMOTE_OMB && !common_config('public', 'localonly'))) {
             $paths[] = array('public');
         }