Use CDN to deliver logos (#421)

This commit is contained in:
Flaminel 2026-01-14 13:51:25 +02:00 committed by GitHub
parent 8bd6b86018
commit 1d1ee7972f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ public sealed class NotificationService
["Test time"] = DateTime.UtcNow.ToString("o"),
["Provider type"] = providerConfig.Type.ToString(),
},
Image = new Uri("https://raw.githubusercontent.com/Cleanuparr/Cleanuparr/refs/heads/main/Logo/256.png")
Image = new Uri("https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr@main/Logo/256.png")
};
try

View File

@ -18,5 +18,5 @@ public static class Constants
public const int DefaultSearchDelaySeconds = 120;
public const int MinSearchDelaySeconds = 60;
public const string LogoUrl = "https://github.com/Cleanuparr/Cleanuparr/blob/main/Logo/48.png?raw=true";
public const string LogoUrl = "https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr@main/Logo/48.png";
}

View File

@ -70,7 +70,7 @@ export class DiscordProviderComponent implements OnInit, OnChanges {
private resetProviderFields(): void {
this.webhookUrlControl.setValue('');
this.usernameControl.setValue('');
this.avatarUrlControl.setValue('https://github.com/Cleanuparr/Cleanuparr/blob/main/Logo/48.png?raw=true');
this.avatarUrlControl.setValue('https://cdn.jsdelivr.net/gh/Cleanuparr/Cleanuparr@main/Logo/48.png');
}
protected hasFieldError(control: FormControl, errorType: string): boolean {