perf: Skip direct download url

Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr 2025-04-07 20:00:35 +02:00
parent 4624457877
commit 1bf0826288
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -537,6 +537,7 @@ class File extends Node implements IFile {
* @return array|bool
*/
public function getDirectDownload() {
return [];
if (Server::get(IAppManager::class)->isEnabledForUser('encryption')) {
return [];
}