fix component thumbnail for blog articles
Frontend CI/CD / test-and-build (push) Successful in 25s
Frontend CI/CD / deploy (push) Successful in 26s

This commit is contained in:
itzMiney committed 2026-11-08 02:00:36 +01:00
1 parent 8976d56495
commit c0b75c341a
1 file changed
+4 -1
+4 -1
View File
@@ -15,6 +15,7 @@ export interface DiscordButton {
export class SeoService {
private readonly rootDomain = 'https://itzminey.dev';
private readonly defaultImage = 'https://itzminey.dev/assets/ogimg.png';
private readonly defaultThumb = 'https://itzminey.dev/assets/thumb.png';
private readonly siteColor = '#0095a4';
constructor(
@@ -54,6 +55,8 @@ export class SeoService {
existingScript.remove();
}
const thumb = meta?.image || this.defaultThumb;
const sectionComponent = {
type: 9,
components: [
@@ -65,7 +68,7 @@ export class SeoService {
accessory: {
type: 11,
media: {
url: 'https://itzminey.dev/assets/thumb.png'
url: thumb
}
}
};