]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Avoid resetting modified for Faves in upgrade script
authorEvan Prodromou <evan@status.net>
Mon, 12 Sep 2011 19:24:47 +0000 (15:24 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 12 Sep 2011 19:24:47 +0000 (15:24 -0400)
scripts/upgrade.php

index 2b116733c65213b7f2e62715d32073a4c8f22583..4c793ac15e43c34163dc81ede7db46bd3c608cd9 100644 (file)
@@ -300,10 +300,12 @@ function initFaveURI()
             try {
                 $fave->decache();
                 $fave->query(sprintf('update fave '.
-                                     'set uri = "%s" '.
+                                     'set uri = "%s", '.
+                                     '    modified = "%s" '.
                                      'where user_id = %d '.
                                      'and notice_id = %d',
                                      Fave::newURI($fave->user_id, $fave->notice_id, $fave->modified),
+                                     common_sql_date(strtotime($fave->modified)),
                                      $fave->user_id,
                                      $fave->notice_id));
             } catch (Exception $e) {