mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-12 01:01:25 +09:00
refactor(ApNoteService.ts
): non-null assertion -> optional chaining
This commit is contained in:
parent
71ca66e24e
commit
8ee31e8002
@ -274,7 +274,7 @@ export class ApPersonService implements OnModuleInit {
|
||||
alsoKnownAs: person.alsoKnownAs,
|
||||
isExplorable: !!person.discoverable,
|
||||
username: person.preferredUsername,
|
||||
usernameLower: person.preferredUsername!.toLowerCase(),
|
||||
usernameLower: person.preferredUsername?.toLowerCase(),
|
||||
host,
|
||||
inbox: person.inbox,
|
||||
sharedInbox: person.sharedInbox ?? (person.endpoints ? person.endpoints.sharedInbox : undefined),
|
||||
|
Loading…
Reference in New Issue
Block a user