This commit is contained in:
Pichu Chen 2024-10-23 13:11:37 +09:00 committed by GitHub
commit b2a84d547e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -585,10 +585,12 @@ export class ApPersonService implements OnModuleInit {
this.hashtagService.updateUsertags(exist, tags);
// 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする
await this.followingsRepository.update(
{ followerId: exist.id },
{ followerSharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox },
);
if (person.sharedInbox != null || person.endpoints?.sharedInbox != null) {
await this.followingsRepository.update(
{ followerId: exist.id },
{ followerSharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox },
);
}
await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err));