fix pinned users

This commit is contained in:
ThatOneCalculator 2022-11-09 19:59:20 -08:00
parent d72bbb4178
commit d209b61ed9
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.12.1",
"version": "12.119.0-calc.12.2",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -9,7 +9,7 @@ export const meta = {
tags: ['users'],
requireCredential: false,
requireCredentialPrivateMode: true,
requireCredentialPrivateMode: false,
res: {
type: 'array',

View File

@ -6,7 +6,7 @@
</MkTab>
<div v-if="origin === 'local'">
<template v-if="tag == null">
<MkFolder v-if="pinnedUsers.length > 0" class="_gap" persist-key="explore-pinned-users">
<MkFolder v-if="pinnedUsersList?.length > 0" class="_gap" persist-key="explore-pinned-users">
<template #header><i class="ph-bookmark-simple-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.pinnedUsers }}</template>
<XUserList :pagination="pinnedUsers"/>
</MkFolder>
@ -90,6 +90,8 @@ const tagUsers = $computed(() => ({
},
}));
const pinnedUsersList = await os.api('pinned-users');
const pinnedUsers = { endpoint: 'pinned-users' };
const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: {
state: 'alive',