Skip to content

Commit

Permalink
リモートユーザー作成後に相互リンク情報を登録 (yojo-art#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Aug 16, 2024
1 parent 5266418 commit 75c18c9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ export class ApPersonService implements OnModuleInit {
birthday: bday?.[0] ?? null,
location: person['vcard:Address'] ?? null,
userHost: host,
mutualLinkSections: await this.mutualLinkSections(person, user),
}));

if (person.publicKey) {
Expand Down Expand Up @@ -507,6 +506,11 @@ export class ApPersonService implements OnModuleInit {
}
//#endregion

//相互リンク機能の画像をドライブに登録する
await this.userProfilesRepository.update({ userId: user.id }, {
mutualLinkSections: await this.mutualLinkSections(person, user),
});

await this.updateFeatured(user.id, resolver).catch(err => this.logger.error(err));

return user;
Expand Down

0 comments on commit 75c18c9

Please sign in to comment.