summaryrefslogtreecommitdiff
path: root/scripts/fixup_inboxes.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-14 03:08:53 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-14 03:08:53 -0500
commit5976d2b202a0141a9c9212f70a42515c9d3130f4 (patch)
treec975c93cdad2eb6197117caf3414f30fce372976 /scripts/fixup_inboxes.php
parent761d4eeaaf52ad12582b3406e11fa7ec37e4530e (diff)
threw out the baby with the bathwater
darcs-hash:20081114080853-84dde-5e9d1e2fa3af671036be98d79a82ddc4e8a52a05.gz
Diffstat (limited to 'scripts/fixup_inboxes.php')
-rwxr-xr-xscripts/fixup_inboxes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php
index 7bee347a4..1715b0bc1 100755
--- a/scripts/fixup_inboxes.php
+++ b/scripts/fixup_inboxes.php
@@ -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 ' .