]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #11569 from annando/issue-11431
[friendica.git] / update.php
index 6e9c294c1fe5618fab763637fb4e5d3ccdee69bf..6635bd813cc155afa6003eff6cfa3bbbf59c4e71 100644 (file)
@@ -1093,6 +1093,18 @@ function update_1451()
 {
        DBA::update('user', ['account-type' => User::ACCOUNT_TYPE_COMMUNITY], ['page-flags' => [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP]]);
        DBA::update('contact', ['contact-type' => Contact::TYPE_COMMUNITY], ["`forum` OR `prv`"]);
+       DBA::update('contact', ['manually-approve' => true], ['prv' => true]);
+
+       return Update::SUCCESS;
+}
+
+function update_1457()
+{
+       $pinned = DBA::select('post-thread-user', ['uri-id'], ['pinned' => true]);
+       while ($post = DBA::fetch($pinned)) {
+               Post\Collection::add($post['uri-id'], Post\Collection::FEATURED);
+       }
+       DBA::close($pinned);
 
        return Update::SUCCESS;
 }