Merge branch 'develop' into merge/2025-03-24

This commit is contained in:
dakkar 2025-04-28 15:00:00 +01:00
commit 4981e5ba36
18 changed files with 306 additions and 57 deletions

View file

@ -54,12 +54,10 @@ export class UrlPreviewService {
@bindThis
private wrap(url?: string | null): string | null {
return url != null
? url.match(/^https?:\/\//)
? `${this.config.mediaProxy}/preview.webp?${query({
url,
preview: '1',
})}`
: url
? `${this.config.mediaProxy}/preview.webp?${query({
url,
preview: '1',
})}`
: null;
}