Set "archive" status

This commit is contained in:
Michael 2023-01-01 00:18:01 +00:00
parent e21db0fe6d
commit 12d37835b4

View File

@ -1225,7 +1225,7 @@ class PostUpdate
$inbox[] = $apcontact['sharedinbox'];
}
$condition = DBA::mergeConditions(['url' => $inbox], ["`gsid` IS NULL"]);
DBA::update('inbox-status', ['gsid' => $apcontact['gsid']], $condition);
DBA::update('inbox-status', ['gsid' => $apcontact['gsid'], 'archive' => GServer::isDefunctById($apcontact['gsid'])], $condition);
++$rows;
}
DBA::close($apcontacts);