From 561140fbedf7bbf6898bd228d4d9f202ca256cc0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 22 Oct 2008 17:04:45 -0400 Subject: [PATCH] change User to use notice inboxes rather than subscription darcs-hash:20081022210445-5ed1f-94a7b172f33411dfa8d1faaf7dc72169f57d6b39.gz --- classes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/User.php b/classes/User.php index 25caf03585..831b18f6f2 100644 --- a/classes/User.php +++ b/classes/User.php @@ -349,8 +349,8 @@ class User extends Memcached_DataObject function noticesWithFriends($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0) { $qry = 'SELECT notice.* ' . - 'FROM notice JOIN subscription ON notice.profile_id = subscription.subscribed ' . - 'WHERE subscription.subscriber = %d '; + 'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' . + 'WHERE notice_inbox.user_id = %d '; if ($since_id > 0) { $qry .= ' AND notice.id > ' . $since_id . ' ';