mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-18 09:01:46 +03:00
refactor: rename accountPaginator
to postPaginator
This commit is contained in:
parent
f46d075664
commit
72edfe77f7
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ function reorderAndFilter(items: mastodon.v1.Status[]) {
|
|||
}
|
||||
|
||||
const pinnedPaginator = useMastoClient().v1.accounts.$select(account.id).statuses.list({ pinned: true })
|
||||
const accountPaginator = useMastoClient().v1.accounts.$select(account.id).statuses.list({ limit: 30, excludeReplies: true })
|
||||
const postPaginator = useMastoClient().v1.accounts.$select(account.id).statuses.list({ limit: 30, excludeReplies: true })
|
||||
|
||||
if (account) {
|
||||
useHydratedHead({
|
||||
|
@ -39,6 +39,6 @@ if (account) {
|
|||
<TimelinePaginator :paginator="pinnedPaginator" :preprocess="applyPinned" context="account" :account="account" :end-message="false" />
|
||||
<!-- Upper border -->
|
||||
<div h="1px" w-auto bg-border mb-1 />
|
||||
<TimelinePaginator :paginator="accountPaginator" :preprocess="reorderAndFilter" context="account" :account="account" />
|
||||
<TimelinePaginator :paginator="postPaginator" :preprocess="reorderAndFilter" context="account" :account="account" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue