]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change User to use notice inboxes rather than subscription
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 22 Oct 2008 21:04:45 +0000 (17:04 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 22 Oct 2008 21:04:45 +0000 (17:04 -0400)
darcs-hash:20081022210445-5ed1f-94a7b172f33411dfa8d1faaf7dc72169f57d6b39.gz

classes/User.php

index 25caf03585cd2863781db4eb3d9378259ab049bb..831b18f6f2241aafd905692686ebe0ede8e089b5 100644 (file)
@@ -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 . ' ';