This reverts commit 6855079811.
This commit is contained in:
@@ -49,7 +49,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<script lang="ts" setup>
|
||||
import { watch, ref, computed } from 'vue';
|
||||
import MkFoldableSection from '@/components/MkFoldableSection.vue';
|
||||
import MkPagination, { Paging } from '@/components/MkPagination.vue';
|
||||
import MkPagination from '@/components/MkPagination.vue';
|
||||
import MkGalleryPostPreview from '@/components/MkGalleryPostPreview.vue';
|
||||
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
@@ -68,19 +68,19 @@ const tagsRef = ref();
|
||||
const recentPostsPagination = {
|
||||
endpoint: 'gallery/posts' as const,
|
||||
limit: 6,
|
||||
} satisfies Paging;
|
||||
};
|
||||
const popularPostsPagination = {
|
||||
endpoint: 'gallery/featured' as const,
|
||||
noPaging: true,
|
||||
} satisfies Paging;
|
||||
};
|
||||
const myPostsPagination = {
|
||||
endpoint: 'i/gallery/posts' as const,
|
||||
limit: 5,
|
||||
} satisfies Paging;
|
||||
};
|
||||
const likedPostsPagination = {
|
||||
endpoint: 'i/gallery/likes' as const,
|
||||
limit: 5,
|
||||
} satisfies Paging;
|
||||
};
|
||||
|
||||
const tagUsersPagination = computed(() => ({
|
||||
endpoint: 'hashtags/users' as const,
|
||||
@@ -90,7 +90,7 @@ const tagUsersPagination = computed(() => ({
|
||||
origin: 'combined',
|
||||
sort: '+follower',
|
||||
},
|
||||
} satisfies Paging));
|
||||
}));
|
||||
|
||||
watch(() => props.tag, () => {
|
||||
if (tagsRef.value) tagsRef.value.tags.toggleContent(props.tag == null);
|
||||
|
||||
@@ -67,7 +67,7 @@ import * as Misskey from 'misskey-js';
|
||||
import MkButton from '@/components/MkButton.vue';
|
||||
import * as os from '@/os.js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
import MkPagination, { Paging } from '@/components/MkPagination.vue';
|
||||
import MkPagination from '@/components/MkPagination.vue';
|
||||
import MkGalleryPostPreview from '@/components/MkGalleryPostPreview.vue';
|
||||
import MkFollowButton from '@/components/MkFollowButton.vue';
|
||||
import { url } from '@/config.js';
|
||||
@@ -93,7 +93,7 @@ const otherPostsPagination = {
|
||||
params: computed(() => ({
|
||||
userId: post.value.user.id,
|
||||
})),
|
||||
} satisfies Paging;
|
||||
};
|
||||
|
||||
function fetchPost() {
|
||||
post.value = null;
|
||||
|
||||
Reference in New Issue
Block a user