Don't delete the post when there is some undeleted post-user

This commit is contained in:
Michael 2022-08-13 12:24:25 +00:00
parent bc3a6b2bb7
commit c6de91a8ec
2 changed files with 7 additions and 0 deletions

View file

@ -1112,5 +1112,6 @@ function update_1457()
function update_1480()
{
DBA::update('contact', ['next-update' => DBA::NULL_DATETIME], ['network' => Protocol::FEDERATED]);
DBA::update('post', ['deleted' => false], ["`uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE NOT `deleted`)"]);
return Update::SUCCESS;
}