]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Update .gitignore for new php-cs-fixer filename
[friendica.git] / update.php
index f04a4d5c5f009d12168dd824d4ed3e931310dbcb..0e655e83db211bfefdd0feab13da905f14b1164d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -1398,5 +1398,16 @@ function update_1535()
        }
        DI::config()->delete('system', 'compute_group_counts');
        
+       return Update::SUCCESS;
+}
+
+function update_1539()
+{
+       $users = DBA::select('user', ['uid'], ['account-type' => User::ACCOUNT_TYPE_COMMUNITY]);
+       while ($user = DBA::fetch($users)) {
+               User::setCommunityUserSettings($user['uid']);
+       }
+       DBA::close($users);
+
        return Update::SUCCESS;
 }
\ No newline at end of file