feat: server image

This commit is contained in:
2026-04-29 18:54:08 +02:00
parent 3d81c34159
commit e1ac1d1bc0
27 changed files with 1340 additions and 615 deletions

View File

@@ -166,7 +166,9 @@ router.post('/', async (req, res) => {
maxUsers,
password,
tags,
channels
channels,
icon,
iconUpdatedAt
} = req.body;
if (!name || !ownerId || !ownerPublicKey)
@@ -184,6 +186,8 @@ router.post('/', async (req, res) => {
isPrivate: isPrivate ?? false,
maxUsers: maxUsers ?? 0,
currentUsers: 0,
icon: typeof icon === 'string' ? icon : undefined,
iconUpdatedAt: typeof iconUpdatedAt === 'number' ? iconUpdatedAt : undefined,
tags: tags ?? [],
channels: normalizeServerChannels(channels),
createdAt: Date.now(),