]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #11569 from annando/issue-11431
[friendica.git] / update.php
index 016fe8a2ec9f658cd16fb7060ab994fc810d1322..6635bd813cc155afa6003eff6cfa3bbbf59c4e71 100644 (file)
@@ -1097,3 +1097,14 @@ function update_1451()
 
        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;
+}