From: Brion Vibber Date: Thu, 14 Jan 2010 04:30:42 +0000 (-0800) Subject: in case we have cached 'fake' inboxes, make sure we rebuild them running initializein... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82f2fe8cca3914ad2a962855951be226141a9d78;p=quix0rs-gnu-social.git in case we have cached 'fake' inboxes, make sure we rebuild them running initializeinbox.php --- diff --git a/scripts/initializeinbox.php b/scripts/initializeinbox.php index 5ae9f7d036..781179401c 100644 --- a/scripts/initializeinbox.php +++ b/scripts/initializeinbox.php @@ -93,6 +93,12 @@ function initializeInbox($user) $inbox = Inbox::staticGet('user_id', $user_id); + if ($inbox && !empty($inbox->fake)) { + if (!have_option('q', 'quiet')) { + echo "(replacing faux cached inbox)"; + } + $inbox = false; + } if (!empty($inbox)) { if (!have_option('q', 'quiet')) { print "SKIP\n";