return bypassSilence to the frontend and remove isSilencedForMe
This commit is contained in:
parent
e425d841b1
commit
7728e749f1
4 changed files with 5 additions and 11 deletions
|
|
@ -573,7 +573,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
rejectQuotes: user.rejectQuotes,
|
||||
attributionDomains: user.attributionDomains,
|
||||
isSilenced: user.isSilenced,
|
||||
isSilencedForMe: !bypassSilence && user.isSilenced,
|
||||
bypassSilence: bypassSilence,
|
||||
speakAsCat: user.speakAsCat ?? false,
|
||||
approved: user.approved,
|
||||
requireSigninToViewContents: user.requireSigninToViewContents === false ? undefined : true,
|
||||
|
|
@ -587,7 +587,6 @@ export class UserEntityService implements OnModuleInit {
|
|||
faviconUrl: instance.faviconUrl,
|
||||
themeColor: instance.themeColor,
|
||||
isSilenced: instance.isSilenced,
|
||||
isSilencedForMe: !bypassSilence && instance.isSilenced,
|
||||
mandatoryCW: instance.mandatoryCW,
|
||||
} : undefined) : undefined,
|
||||
followersCount: followersCount ?? 0,
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ export const packedUserLiteSchema = {
|
|||
type: 'boolean',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
isSilencedForMe: {
|
||||
bypassSilence: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
|
|
@ -232,10 +232,6 @@ 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