]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
put some debugging code into the home and public timelines
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 20:20:51 +0000 (16:20 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 20:20:51 +0000 (16:20 -0400)
lib/inboxnoticestream.php
lib/publicnoticestream.php

index 5517cef1137b4bcfddb3033a59c0611efc5dbb9c..445828a5516cab49e3499526907e0c5f630c8c6b 100644 (file)
@@ -133,6 +133,10 @@ class RawInboxNoticeStream extends NoticeStream
 
         $ids = array_slice($ids, $offset, $limit);
 
+        if (common_config('debug', 'homevspublic')) {
+            common_debug('Home raw: ' . implode(',', $ids));
+        }
+
         return $ids;
     }
 }
index 044701aaf68bb2b7e983a2ec4e8837910b6bd446..51af54f48fda4a869626746e475a609d6ecf2826 100644 (file)
@@ -103,6 +103,10 @@ class RawPublicNoticeStream extends NoticeStream
         $notice->free();
         $notice = NULL;
 
-        return $ids;
+        if (common_config('debug', 'homevspublic')) {
+            common_debug('Public raw: ' . implode(',', $ids));
+        }
+
+       return $ids;
     }
 }
\ No newline at end of file