This reverts commit 09a5413d. The backport was merged before the commit was dropped, but the commit was meant only for Nextcloud 23, as it may require changes in the clients.