refactor(ApPersonService.ts
)
This commit is contained in:
parent
8e46204d91
commit
56a6608741
|
@ -505,11 +505,10 @@ export class ApPersonService implements OnModuleInit {
|
||||||
this.hashtagService.updateUsertags(exist, tags);
|
this.hashtagService.updateUsertags(exist, tags);
|
||||||
|
|
||||||
// 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする
|
// 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする
|
||||||
await this.followingsRepository.update({
|
await this.followingsRepository.update(
|
||||||
followerId: exist.id,
|
{ followerId: exist.id },
|
||||||
}, {
|
{ followerSharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox },
|
||||||
followerSharedInbox: person.sharedInbox ?? (person.endpoints ? person.endpoints.sharedInbox : undefined),
|
);
|
||||||
});
|
|
||||||
|
|
||||||
await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err));
|
await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue