]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
threw out the baby with the bathwater
authorEvan Prodromou <evan@prodromou.name>
Fri, 14 Nov 2008 08:08:53 +0000 (03:08 -0500)
committerEvan Prodromou <evan@prodromou.name>
Fri, 14 Nov 2008 08:08:53 +0000 (03:08 -0500)
darcs-hash:20081114080853-84dde-5e9d1e2fa3af671036be98d79a82ddc4e8a52a05.gz

scripts/fixup_inboxes.php

index 7bee347a4709c32acff4db68231461e412f7640b..1715b0bc1ba22d13b3461121672f385772b02684 100755 (executable)
@@ -50,6 +50,7 @@ $cache = common_memcache();
 while ($user->fetch()) {
     common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
        $user->query('BEGIN');
+       $inbox = new Notice_inbox();
        $result = $inbox->query('INSERT LOW_PRIORITY INTO notice_inbox (user_id, notice_id, created) ' .
                                                        'SELECT ' . $user->id . ', notice.id, notice.created ' .
                                                        'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .