diff options
| author | nomad <benkang666@gmail.com> | 2023-07-11 13:40:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-11 14:40:56 +0900 |
| commit | 791ae608a50f9f7abab048185ea146823d285582 (patch) | |
| tree | 2fe3486a29bc9424bba8bac4308b36e07186f332 /packages/backend/src/core/FetchInstanceMetadataService.ts | |
| parent | feat: ユーザーをcontextmenuからアンテナに追加できるように... (diff) | |
| download | sharkey-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.ts | 2 |
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; |