Simplify "last-activity" handling

This commit is contained in:
Michael 2022-12-04 07:17:26 +00:00
parent 1d8c9276f3
commit e5a531d3b5
5 changed files with 12 additions and 15 deletions

View file

@ -1126,4 +1126,10 @@ function update_1491()
{
DBA::update('contact', ['remote_self' => Contact::MIRROR_OWN_POST], ['remote_self' => Contact::MIRROR_FORWARDED]);
return Update::SUCCESS;
}
function update_1497()
{
DBA::e("UPDATE `user` SET `last-activity` = DATE(`login_date`) WHERE `last-activity` IS NULL");
return Update::SUCCESS;
}