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 @bindThis
public usingBunnyCDN(meta: MiMeta) { public usingBunnyCDN(meta: MiMeta) {
const client = this.getBunnyInfo(meta); return meta.objectStorageEndpoint && meta.objectStorageEndpoint.endsWith('bunnycdn.com');
return new URL(client.fullUrl).hostname.endsWith('bunnycdn.com');
} }
@bindThis @bindThis