revert: always get detailed user
This commit is contained in:
parent
0ed87ddef2
commit
a505e51777
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user