From f68c0ac05da6fd7c608573d1ed53fb565ad38017 Mon Sep 17 00:00:00 2001 From: Marie Date: Fri, 11 Oct 2024 22:06:37 +0000 Subject: [PATCH] fix: broken error images --- packages/backend/src/server/web/ClientServerService.ts | 6 +++--- packages/frontend-shared/js/const.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index 4b760db89d..c14f6c9123 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -193,9 +193,9 @@ export class ClientServerService { icon: meta.iconUrl, appleTouchIcon: meta.app512IconUrl, themeColor: meta.themeColor, - serverErrorImageUrl: meta.serverErrorImageUrl ?? '/status/error.png', - infoImageUrl: meta.infoImageUrl ?? '/status/nothinghere.png', - notFoundImageUrl: meta.notFoundImageUrl ?? '/status/missingpage.webp', + serverErrorImageUrl: meta.serverErrorImageUrl ?? '/client-assets/status/error.png', + infoImageUrl: meta.infoImageUrl ?? '/client-assets/status/nothinghere.png', + notFoundImageUrl: meta.notFoundImageUrl ?? '/client-assets/status/missingpage.webp', instanceUrl: this.config.url, randomMOTD: this.config.customMOTD ? this.config.customMOTD[Math.floor(Math.random() * this.config.customMOTD.length)] : undefined, metaJson: htmlSafeJsonStringify(await this.metaEntityService.packDetailed(meta)), diff --git a/packages/frontend-shared/js/const.ts b/packages/frontend-shared/js/const.ts index e5a2eca3b3..8ff1863775 100644 --- a/packages/frontend-shared/js/const.ts +++ b/packages/frontend-shared/js/const.ts @@ -167,9 +167,9 @@ export const ROLE_POLICIES = [ export const CURRENT_STICKY_TOP = 'CURRENT_STICKY_TOP'; export const CURRENT_STICKY_BOTTOM = 'CURRENT_STICKY_BOTTOM'; -export const DEFAULT_SERVER_ERROR_IMAGE_URL = '/status/error.png'; -export const DEFAULT_NOT_FOUND_IMAGE_URL = '/status/missingpage.webp'; -export const DEFAULT_INFO_IMAGE_URL = '/status/nothinghere.png'; +export const DEFAULT_SERVER_ERROR_IMAGE_URL = '/client-assets/status/error.png'; +export const DEFAULT_NOT_FOUND_IMAGE_URL = '/client-assets/status/missingpage.webp'; +export const DEFAULT_INFO_IMAGE_URL = '//client-assets/status/nothinghere.png'; export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'border', 'font', 'blur', 'rainbow', 'sparkle', 'rotate', 'ruby', 'unixtime', 'crop', 'fade', 'followmouse']; export const MFM_PARAMS: Record = {