]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use Notice::fetchAll() in ConversationNoticeStream
authorEvan Prodromou <evan@status.net>
Thu, 14 Jul 2011 16:54:07 +0000 (12:54 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Jul 2011 16:54:07 +0000 (12:54 -0400)
lib/conversationnoticestream.php

index 66075db84f436a62c095174f0036b8231fddf4a5..adf610ffe7b2841c0d15260cc093b3d0216a573b 100644 (file)
@@ -95,14 +95,6 @@ class RawConversationNoticeStream extends NoticeStream
         Notice::addWhereSinceId($notice, $since_id);
         Notice::addWhereMaxId($notice, $max_id);
 
-        $ids = array();
-
-        if ($notice->find()) {
-            while ($notice->fetch()) {
-                $ids[] = $notice->id;
-            }
-        }
-
-        return $ids;
+        return $notice->fetchAll('id');
     }
 }
\ No newline at end of file