mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 11:14:32 +02:00
Update function / rearrange tab order
This commit is contained in:
parent
5144654067
commit
e186395198
4 changed files with 28 additions and 11 deletions
13
update.php
13
update.php
|
@ -62,6 +62,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Protocol\Activity;
|
||||
use Friendica\Protocol\Delivery;
|
||||
use Friendica\Security\PermissionSet\Repository\PermissionSet;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
// Post-update script of PR 5751
|
||||
function update_1298()
|
||||
|
@ -1377,3 +1378,15 @@ function update_1525(): int
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1531()
|
||||
{
|
||||
$threads = Post::selectThread(Item::DELIVER_FIELDLIST, ["`uid` = ? AND `created` > ?", 0, DateTimeFormat::utc('now - ' . DI::config()->get('channel', 'engagement_hours') . ' hour')]);
|
||||
while ($post = Post::fetch($threads)) {
|
||||
$post['gravity'] = Item::GRAVITY_COMMENT;
|
||||
Post\Engagement::storeFromItem($post);
|
||||
}
|
||||
DBA::close($threads);
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue