fix: user-tagページでユーザーが重複して読み込まれるのを修正 (#17163)

* fix: user-tagをページネーションに対応させる

* update changelog
This commit is contained in:
かっこかり
2026-02-15 11:50:23 +09:00
committed by GitHub
parent a22b82c414
commit af40eb4d31
4 changed files with 9 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
- Enhance: 「もうすぐ誕生日のユーザー」ウィジェットで、誕生日が至近のユーザーも表示できるように
(Cherry-picked from https://github.com/MisskeyIO/misskey)
- 「今日誕生日のユーザー」は「もうすぐ誕生日のユーザー」に名称変更されました
- Fix: ユーザーハッシュタグページでユーザーの読み込みが重複する問題を修正
- 依存関係の更新
### Client

View File

@@ -32,6 +32,7 @@ export const paramDef = {
properties: {
tag: { type: 'string' },
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
offset: { type: 'integer', default: 0 },
sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] },
state: { type: 'string', enum: ['all', 'alive'], default: 'all' },
origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'local' },
@@ -74,7 +75,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
case '-updatedAt': query.orderBy('user.updatedAt', 'ASC'); break;
}
const users = await query.limit(ps.limit).getMany();
const users = await query
.limit(ps.limit)
.offset(ps.offset)
.getMany();
return await this.userEntityService.packMany(users, me, { schema: 'UserDetailed' });
});

View File

@@ -25,6 +25,7 @@ const props = defineProps<{
const paginator = markRaw(new Paginator('hashtags/users', {
limit: 30,
offsetMode: true,
computedParams: computed(() => ({
tag: props.tag,
origin: 'combined',

View File

@@ -24020,6 +24020,8 @@ export interface operations {
tag: string;
/** @default 10 */
limit?: number;
/** @default 0 */
offset?: number;
/** @enum {string} */
sort: '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt';
/**