add instance.isSilencedForMe
This commit is contained in:
parent
e4316e9721
commit
bc16dc78d4
7 changed files with 37 additions and 23 deletions
|
|
@ -593,6 +593,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
faviconUrl: instance.faviconUrl,
|
||||
themeColor: instance.themeColor,
|
||||
isSilenced: instance.isSilenced,
|
||||
isSilencedForMe: !bypassSilence && instance.isSilenced,
|
||||
mandatoryCW: instance.mandatoryCW,
|
||||
} : undefined),
|
||||
followersCount: followersCount ?? 0,
|
||||
|
|
|
|||
|
|
@ -232,6 +232,10 @@ export const packedUserLiteSchema = {
|
|||
type: 'boolean',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
isSilencedForMe: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
mandatoryCW: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue