revert: always get detailed user

This commit is contained in:
Mar0xy 2023-09-25 21:14:52 +02:00
parent 0ed87ddef2
commit a505e51777
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
3 changed files with 3 additions and 3 deletions

View File

@ -310,7 +310,7 @@ export class NoteEntityService implements OnModuleInit {
createdAt: note.createdAt.toISOString(), createdAt: note.createdAt.toISOString(),
userId: note.userId, userId: note.userId,
user: this.userEntityService.pack(note.user ?? note.userId, me, { user: this.userEntityService.pack(note.user ?? note.userId, me, {
detail: true, detail: false,
}), }),
text: text, text: text,
cw: note.cw, cw: note.cw,

View File

@ -264,7 +264,7 @@ namespace MisskeyAPI {
id: n.id, id: n.id,
uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '', uri: n.uri ? n.uri : host ? `https://${host}/notes/${n.id}` : '',
url: n.url ? n.url : host ? `https://${host}/notes/${n.id}` : '', url: n.url ? n.url : host ? `https://${host}/notes/${n.id}` : '',
account: userDetail(n.user, n.user.host ? n.user.host : host ? host : null), account: user(n.user, n.user.host ? n.user.host : host ? host : null),
in_reply_to_id: n.replyId, in_reply_to_id: n.replyId,
in_reply_to_account_id: n.reply?.userId ?? null, in_reply_to_account_id: n.reply?.userId ?? null,
reblog: n.renote ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : null, reblog: n.renote ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : null,

View File

@ -8,7 +8,7 @@ namespace MisskeyEntity {
id: string id: string
createdAt: string createdAt: string
userId: string userId: string
user: UserDetail user: User
text: string | null text: string | null
cw: string | null cw: string | null
visibility: 'public' | 'home' | 'followers' | 'specified' visibility: 'public' | 'home' | 'followers' | 'specified'