This commit is contained in:
mattyatea 2024-05-16 01:15:57 +09:00
parent 6a07fa78dd
commit ed14ddad0c
2 changed files with 1 additions and 6 deletions

View File

@ -404,7 +404,6 @@ export class UserEntityService implements OnModuleInit {
userRelations?: Map<MiUser['id'], UserRelation>,
userMemos?: Map<MiUser['id'], string | null>,
pinNotes?: Map<MiUser['id'], MiUserNotePining[]>,
todayGetPoints?: number,
},
): Promise<Packed<S>> {
const opts = Object.assign({
@ -508,7 +507,7 @@ export class UserEntityService implements OnModuleInit {
iconUrl: r.iconUrl,
displayOrder: r.displayOrder,
}))) : undefined,
...(user.host == null ? { getPoints: profile!.getPoints } : {}),
...(user.host == null ? { getPoints: user.getPoints } : {}),
...(isDetailed ? {
url: profile!.url,
uri: user.uri,
@ -603,9 +602,6 @@ export class UserEntityService implements OnModuleInit {
achievements: profile!.achievements,
loggedInDays: profile!.loggedInDates.length,
policies: this.roleService.getUserPolicies(user.id),
...(opts.todayGetPoints ? {
todayGetPoints: opts.todayGetPoints,
} : {}),
} : {}),
...(opts.includeSecrets ? {

View File

@ -83,7 +83,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
schema: 'MeDetailed',
includeSecrets: isSecure,
userProfile,
...(todayGetPoints && { todayGetPoints }),
});
});
}