update userProfileCache from updatePerson

This commit is contained in:
Hazelnoot 2025-09-17 11:50:24 -04:00
parent 0ebb023058
commit 09de5dff44

View file

@ -819,6 +819,7 @@ export class ApPersonService implements OnModuleInit {
location: person['vcard:Address'] ?? null, location: person['vcard:Address'] ?? null,
listenbrainz: person.listenbrainz ?? null, listenbrainz: person.listenbrainz ?? null,
}); });
await this.cacheService.userProfileCache.delete(updated.id);
// 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする // 該当ユーザーが既にフォロワーになっていた場合はFollowingもアップデートする
if (updated.inbox !== person.inbox || updated.sharedInbox !== (person.sharedInbox ?? person.endpoints?.sharedInbox)) { if (updated.inbox !== person.inbox || updated.sharedInbox !== (person.sharedInbox ?? person.endpoints?.sharedInbox)) {