From: Evan Prodromou Date: Mon, 18 Apr 2011 20:20:51 +0000 (-0400) Subject: put some debugging code into the home and public timelines X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa7b6447a1172693e7e7affe0bde37cf098e81d1;p=quix0rs-gnu-social.git put some debugging code into the home and public timelines --- diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index 5517cef113..445828a551 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -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; } } diff --git a/lib/publicnoticestream.php b/lib/publicnoticestream.php index 044701aaf6..51af54f48f 100644 --- a/lib/publicnoticestream.php +++ b/lib/publicnoticestream.php @@ -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