From 4efee455b1e118312fd07305095835c74fab5523 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 21 Jun 2022 14:28:43 +0900 Subject: [PATCH] fix(server): faviconUrl of federated instance is missing --- CHANGELOG.md | 1 + packages/backend/src/models/repositories/instance.ts | 1 + packages/backend/src/models/schema/federation-instance.ts | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01b179f13..904083e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ You should also include the user name that made the change. ### Bugfixes - Server: Fix GenerateVideoThumbnail failed @mei23 - Server: Ensure temp directory cleanup @Johann150 +- favicons of federated instances not showing @syuilo ## 12.111.1 (2022/06/13) diff --git a/packages/backend/src/models/repositories/instance.ts b/packages/backend/src/models/repositories/instance.ts index 4ddf71709..4594d8634 100644 --- a/packages/backend/src/models/repositories/instance.ts +++ b/packages/backend/src/models/repositories/instance.ts @@ -26,6 +26,7 @@ export const InstanceRepository = db.getRepository(Instance).extend({ maintainerName: instance.maintainerName, maintainerEmail: instance.maintainerEmail, iconUrl: instance.iconUrl, + faviconUrl: instance.faviconUrl, infoUpdatedAt: instance.infoUpdatedAt ? instance.infoUpdatedAt.toISOString() : null, }; }, diff --git a/packages/backend/src/models/schema/federation-instance.ts b/packages/backend/src/models/schema/federation-instance.ts index c4e7b3f18..9f27aab98 100644 --- a/packages/backend/src/models/schema/federation-instance.ts +++ b/packages/backend/src/models/schema/federation-instance.ts @@ -88,6 +88,11 @@ export const packedFederationInstanceSchema = { optional: false, nullable: true, format: 'url', }, + faviconUrl: { + type: 'string', + optional: false, nullable: true, + format: 'url', + }, infoUpdatedAt: { type: 'string', optional: false, nullable: true,