summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/FetchInstanceMetadataService.ts
diff options
context:
space:
mode:
authornomad <benkang666@gmail.com>2023-07-11 13:40:56 +0800
committerGitHub <noreply@github.com>2023-07-11 14:40:56 +0900
commit791ae608a50f9f7abab048185ea146823d285582 (patch)
tree2fe3486a29bc9424bba8bac4308b36e07186f332 /packages/backend/src/core/FetchInstanceMetadataService.ts
parentfeat: ユーザーをcontextmenuからアンテナに追加できるように... (diff)
downloadsharkey-791ae608a50f9f7abab048185ea146823d285582.tar.gz
sharkey-791ae608a50f9f7abab048185ea146823d285582.tar.bz2
sharkey-791ae608a50f9f7abab048185ea146823d285582.zip
fix(backend): fix fetchInstanceMetadata error (#11236)
Diffstat (limited to 'packages/backend/src/core/FetchInstanceMetadataService.ts')
-rw-r--r--packages/backend/src/core/FetchInstanceMetadataService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/FetchInstanceMetadataService.ts b/packages/backend/src/core/FetchInstanceMetadataService.ts
index a0afaaf888..9e8d17442f 100644
--- a/packages/backend/src/core/FetchInstanceMetadataService.ts
+++ b/packages/backend/src/core/FetchInstanceMetadataService.ts
@@ -103,7 +103,7 @@ export class FetchInstanceMetadataService {
if (name) updates.name = name;
if (description) updates.description = description;
- if (icon || favicon) updates.iconUrl = icon ?? favicon;
+ if (icon || favicon) updates.iconUrl = (icon && !icon.includes('data:image/png;base64')) ? icon : favicon;
if (favicon) updates.faviconUrl = favicon;
if (themeColor) updates.themeColor = themeColor;