feat: add music to front page of instance (#6)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user