merge: reverts the check in usingBunnyCdn back and some lint fixes caused by other commits (!989)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/989

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
Marie 2025-05-08 09:14:55 +00:00
commit 29f6777a07
2 changed files with 2 additions and 3 deletions

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

View file

@ -50,7 +50,7 @@ const onInput = () => {
const removeColor = () => {
v.value = null;
onInput();
}
};
</script>
<style lang="scss" module>