summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-29 20:45:33 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-29 20:45:33 -0400
commitaee641ee1e311fb0af0f9f6d75ca7fae2c7d8477 (patch)
tree34a747d86a744b22f7a4d5db6e4362546495e778 /classes/User.php
parent1e8ea1eb460b163176c4d7d1e7dffa500024ef91 (diff)
make replies use new query format
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/classes/User.php b/classes/User.php
index ce7ea1464..b76e45c33 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -401,13 +401,9 @@ class User extends Memcached_DataObject
function getReplies($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0, $since=null)
{
- $qry =
- 'SELECT notice.* ' .
- 'FROM notice JOIN reply ON notice.id = reply.notice_id ' .
- 'WHERE reply.profile_id = %d ';
- return Notice::getStream(sprintf($qry, $this->id),
- 'user:replies:'.$this->id,
- $offset, $limit, $since_id, $before_id, null, $since);
+ $ids = Reply::stream($this->id, $offset, $limit, $since_id, $before_id, $since);
+ common_debug("Ids = " . implode(',', $ids));
+ return Notice::getStreamByIds($ids);
}
function getNotices($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0, $since=null)