Merge 2f55c80d2f into 48d1539f3b
This commit is contained in:
commit
b2a84d547e
1 changed files with 6 additions and 4 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue