revert back to old check

This commit is contained in:
Marie 2025-05-07 19:10:34 +00:00
parent b66a486036
commit 0195810b6a

View file

@ -44,8 +44,7 @@ export class BunnyService {
@bindThis
public usingBunnyCDN(meta: MiMeta) {
const client = this.getBunnyInfo(meta);
return new URL(client.fullUrl).hostname.endsWith('bunnycdn.com');
return meta.objectStorageEndpoint && meta.objectStorageEndpoint.endsWith('bunnycdn.com');
}
@bindThis