include rejectQuotes on all packed User entities
This commit is contained in:
parent
365a0bd2c5
commit
f39f47aade
4 changed files with 23 additions and 7 deletions
|
|
@ -593,6 +593,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
noindex: user.noindex,
|
||||
enableRss: user.enableRss,
|
||||
mandatoryCW: user.mandatoryCW,
|
||||
rejectQuotes: user.rejectQuotes,
|
||||
isSilenced: user.isSilenced || this.roleService.getUserPolicies(user.id).then(r => !r.canPublicNote),
|
||||
speakAsCat: user.speakAsCat ?? false,
|
||||
approved: user.approved,
|
||||
|
|
@ -674,7 +675,6 @@ export class UserEntityService implements OnModuleInit {
|
|||
securityKeys: profile!.twoFactorEnabled
|
||||
? this.userSecurityKeysRepository.countBy({ userId: user.id }).then(result => result >= 1)
|
||||
: false,
|
||||
rejectQuotes: user.rejectQuotes,
|
||||
} : {}),
|
||||
|
||||
...(isDetailed && isMe ? {
|
||||
|
|
|
|||
|
|
@ -138,6 +138,10 @@ export const packedUserLiteSchema = {
|
|||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
},
|
||||
rejectQuotes: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: true,
|
||||
},
|
||||
isBot: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: true,
|
||||
|
|
@ -445,10 +449,6 @@ export const packedUserDetailedNotMeOnlySchema = {
|
|||
type: 'boolean',
|
||||
nullable: false, optional: true,
|
||||
},
|
||||
rejectQuotes: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: true,
|
||||
},
|
||||
//#region relations
|
||||
isFollowing: {
|
||||
type: 'boolean',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue