]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
in case we have cached 'fake' inboxes, make sure we rebuild them running initializein...
authorBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:30:42 +0000 (20:30 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:30:42 +0000 (20:30 -0800)
scripts/initializeinbox.php

index 5ae9f7d036392351cec57aa380943030b88229db..781179401cc788455d6267461e42df3903b2509e 100644 (file)
@@ -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";