1
0

feat: add music to front page of instance (#6)

This commit is contained in:
Leafus
2025-05-19 16:34:21 +00:00
committed by Bluey Heeler
parent 400354237c
commit 9599b802a4
9 changed files with 110 additions and 0 deletions
@@ -63,6 +63,8 @@ export const paramDef = {
app512IconUrl: { type: 'string', nullable: true },
sidebarLogoUrl: { type: 'string', nullable: true },
backgroundImageUrl: { type: 'string', nullable: true },
musicSource: { type: 'string', nullable: true },
musicEnabled: { type: 'boolean', nullable: false },
logoImageUrl: { type: 'string', nullable: true },
name: { type: 'string', nullable: true },
shortName: { type: 'string', nullable: true },
@@ -316,6 +318,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.backgroundImageUrl = ps.backgroundImageUrl;
}
if (ps.musicEnabled !== undefined) {
set.musicEnabled = ps.musicEnabled;
}
if (ps.musicSource !== undefined) {
set.musicSource = ps.musicSource;
}
if (ps.logoImageUrl !== undefined) {
set.logoImageUrl = ps.logoImageUrl;
}