]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Distribute incoming posts according to the parent followers collection
[friendica.git] / update.php
index 9af01fd0fe36fbe2d460f30ad590ef19ea52a1eb..ce22a28d14e075a0aa3533e197b674f065361f1c 100644 (file)
@@ -1388,5 +1388,26 @@ function update_1531()
        }
        DBA::close($threads);
 
+       return Update::SUCCESS;
+}
+
+function update_1535()
+{
+       if (DI::config()->get('system', 'compute_group_counts')) {
+               DI::config()->set('system', 'compute_circle_counts', true);
+       }
+       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