@@ -355,7 +355,7 @@ export class ApPersonService implements OnModuleInit {
355
355
usernameLower : person . preferredUsername ?. toLowerCase ( ) ,
356
356
host,
357
357
inbox : person . inbox ,
358
- sharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox ,
358
+ sharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox ?? null ,
359
359
followersUri : person . followers ? getApId ( person . followers ) : undefined ,
360
360
featured : person . featured ? getApId ( person . featured ) : undefined ,
361
361
uri : person . id ,
@@ -521,7 +521,7 @@ export class ApPersonService implements OnModuleInit {
521
521
const updates = {
522
522
lastFetchedAt : new Date ( ) ,
523
523
inbox : person . inbox ,
524
- sharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox ,
524
+ sharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox ?? null ,
525
525
followersUri : person . followers ? getApId ( person . followers ) : undefined ,
526
526
featured : person . featured ,
527
527
emojis : emojiNames ,
@@ -593,7 +593,7 @@ export class ApPersonService implements OnModuleInit {
593
593
// 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする
594
594
await this . followingsRepository . update (
595
595
{ followerId : exist . id } ,
596
- { followerSharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox } ,
596
+ { followerSharedInbox : person . sharedInbox ?? person . endpoints ?. sharedInbox ?? null } ,
597
597
) ;
598
598
599
599
await this . updateFeatured ( exist . id , resolver ) . catch ( err => this . logger . error ( err ) ) ;
0 commit comments