Add instance selection to modlog
This commit is contained in:
1 parent
e5d7e7824e
commit
189a4e1e32
2 files changed
+19
-1
No files matched your search
@@ -203,6 +203,7 @@ export const _toModLog = (item: ModAction): ModLog => {
|
||||
}
|
||||
|
||||
export async function load({ url }) {
|
||||
let instance = url.searchParams.get('instance') || undefined
|
||||
let community = Number(url.searchParams.get('community')) || undefined
|
||||
let user = Number(url.searchParams.get('user')) || undefined
|
||||
let modId = Number(url.searchParams.get('mod_id')) || undefined
|
||||
@@ -210,7 +211,7 @@ export async function load({ url }) {
|
||||
let type: ModlogActionType =
|
||||
(url.searchParams.get('type') as ModlogActionType) || 'All'
|
||||
|
||||
const results = await getClient().getModlog({
|
||||
const results = await getClient(instance).getModlog({
|
||||
community_id: community,
|
||||
limit: 40,
|
||||
type_: type,
|
||||
|
||||
Reference in new issue
Block a user