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 @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

View file

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