Display featured posts for contacts
This commit is contained in:
parent
8669f12176
commit
75bc4eccb7
21 changed files with 172 additions and 118 deletions
11
update.php
11
update.php
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue