]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inboxnoticestream.php
Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / inboxnoticestream.php
index 87868b1d79aab4f2e6b852dac3a7106ac229c293..0d8733e079cc31989dd0e6ecc009a035154c607f 100644 (file)
@@ -139,11 +139,13 @@ class RawInboxNoticeStream extends NoticeStream
 
     function getNotices($offset, $limit, $sinceId, $maxId)
     {
+        //common_debug('offset=' . $offset . ',limit=' . $limit . ',sinceId=' . $sinceId . ',maxId=' . $maxId . ' - CALLED!');
         $all = array();
 
         do {
 
             $ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId);
+            //common_debug('ids()=' . count($ids));
 
             $notices = Notice::pivotGet('id', $ids);
 
@@ -158,8 +160,10 @@ class RawInboxNoticeStream extends NoticeStream
                 $limit  -= count($notices);
             }
 
+            //common_debug('all()=' . count($all));
         } while (count($notices) < count($ids) && count($ids) > 0);
 
+        //common_debug('all()=' . count($all) . ' - EXIT!');
         return new ArrayWrapper($all);
     }
 }