From a1e3eada2e24bb8d8639f4052283fa4b5ae4053d 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 | 4 +++- packages/backend/src/models/repositories/instance.ts | 1 + packages/backend/src/models/schema/federation-instance.ts | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 639d5f2ff..904083e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,9 @@ You should also include the user name that made the change. - Add Badge Image to Push Notification #8012 @tamaina ### Bugfixes -- Fix GenerateVideoThumbnail failed @mei23 +- 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,