Display featured posts for contacts

This commit is contained in:
Michael
2022-04-07 21:52:25 +00:00
parent 8669f12176
commit 75bc4eccb7
21 changed files with 172 additions and 118 deletions

View 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;
}