]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Ward against empty template variable in frio:contact/entry.tpl
[friendica.git] / update.php
index 9f348efe62b1dc04adef7ac4ab8d130f93e85d44..2ee753ead2125e384175de24d9ffa096d9dadecd 100644 (file)
@@ -299,7 +299,7 @@ function update_1349()
        }
 
        if (!DBA::e("UPDATE `item` INNER JOIN `item-activity` ON `item`.`uri-id` = `item-activity`.`uri-id`
-               SET `vid` = `item-activity`.`activity` + 1 WHERE `gravity` = ? AND (`vid` IS NULL OR `vid` = 0)", GRAVITY_ACTIVITY)) {
+               SET `vid` = `item-activity`.`activity` + 1 WHERE `gravity` = ? AND (`vid` IS NULL OR `vid` = 0)", Item::GRAVITY_ACTIVITY)) {
                return Update::FAILED;
        }
 
@@ -1121,3 +1121,9 @@ function update_1481()
        DBA::e("UPDATE `post-collection` INNER JOIN `post` ON `post`.`uri-id` = `post-collection`.`uri-id` SET `post-collection`.`author-id` = `post`.`author-id` WHERE `post-collection`.`author-id` IS null");
        return Update::SUCCESS;
 }
+
+function update_1491()
+{
+       DBA::update('contact', ['remote_self' => Contact::MIRROR_OWN_POST], ['remote_self' => Contact::MIRROR_FORWARDED]);
+       return Update::SUCCESS;
+}
\ No newline at end of file