Skip to content

Commit

Permalink
Update UserEntityService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea authored Dec 27, 2024
1 parent 52960c8 commit ee1350b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/entities/UserEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ export class UserEntityService implements OnModuleInit {
}))) : [],
isBot: user.isBot,
isCat: user.isCat,
makeNotesFollowersOnlyBefore: user.makeNotesFollowersOnlyBefore ?? undefined,
makeNotesHiddenBefore: user.makeNotesHiddenBefore ?? undefined,
makeNotesFollowersOnlyBefore: (user.host && user.makeNotesFollowersOnlyBefore) ?? undefined,
makeNotesHiddenBefore: (user.host && user.makeNotesHiddenBefore )?? undefined,

Check failure on line 492 in packages/backend/src/core/entities/UserEntityService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

Operator '??' must be spaced
instance: user.host ? this.federatedInstanceService.federatedInstanceCache.fetch(user.host).then(instance => instance ? {
name: instance.name,
softwareName: instance.softwareName,
Expand Down

0 comments on commit ee1350b

Please sign in to comment.