revert: always get detailed user
This commit is contained in:
parent
0ed87ddef2
commit
a505e51777
3 changed files with 3 additions and 3 deletions
|
@ -310,7 +310,7 @@ export class NoteEntityService implements OnModuleInit {
|
|||
createdAt: note.createdAt.toISOString(),
|
||||
userId: note.userId,
|
||||
user: this.userEntityService.pack(note.user ?? note.userId, me, {
|
||||
detail: true,
|
||||
detail: false,
|
||||
}),
|
||||
text: text,
|
||||
cw: note.cw,
|
||||
|
|
|
@ -264,7 +264,7 @@ namespace MisskeyAPI {
|
|||
id: n.id,
|
||||
uri: n.uri ? n.uri : 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_account_id: n.reply?.userId ?? null,
|
||||
reblog: n.renote ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : null,
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace MisskeyEntity {
|
|||
id: string
|
||||
createdAt: string
|
||||
userId: string
|
||||
user: UserDetail
|
||||
user: User
|
||||
text: string | null
|
||||
cw: string | null
|
||||
visibility: 'public' | 'home' | 'followers' | 'specified'
|
||||
|
|
Loading…
Reference in a new issue