server: change default value for api/admin/show-users origin param

Changed from "local" to "combined" to fix a bug when the hostname is set
but origin is not.

Changelog: Changed
This commit is contained in:
Johann150 2023-01-01 22:11:19 +01:00
parent 0b7c9095bf
commit 8b0b7ff525
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -26,13 +26,11 @@ export const paramDef = {
offset: { type: 'integer', default: 0 }, offset: { type: 'integer', default: 0 },
sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] }, sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] },
state: { type: 'string', enum: ['all', 'alive', 'available', 'admin', 'moderator', 'adminOrModerator', 'silenced', 'suspended'], default: 'all' }, state: { type: 'string', enum: ['all', 'alive', 'available', 'admin', 'moderator', 'adminOrModerator', 'silenced', 'suspended'], default: 'all' },
origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'local' }, origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'combined' },
username: { type: 'string', nullable: true, default: null }, username: { type: 'string', nullable: true, default: null },
hostname: { hostname: {
type: 'string', type: 'string',
nullable: true, description: "To represent the local host, use `origin: 'local'` instead.",
default: null,
description: 'The local host is represented with `null`.',
}, },
}, },
required: [], required: [],