feat: server image
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user