This commit is contained in:
mattyatea 2024-05-14 05:17:18 +09:00
parent 2c294ff978
commit 7f9ac61174
2 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ export class CacheService implements OnApplicationShutdown {
case 'userChangeSuspendedState': case 'userChangeSuspendedState':
case 'userChangeDeletedState': case 'userChangeDeletedState':
case 'remoteUserUpdated': case 'remoteUserUpdated':
case 'localUserUpdated': { {
const user = await this.usersRepository.findOneBy({ id: body.id }); const user = await this.usersRepository.findOneBy({ id: body.id });
if (user == null) { if (user == null) {
this.userByIdCache.delete(body.id); this.userByIdCache.delete(body.id);

View File

@ -484,15 +484,15 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
// 鍵垢を解除したとき、溜まっていたフォローリクエストがあるならすべて承認 // 鍵垢を解除したとき、溜まっていたフォローリクエストがあるならすべて承認
if (user.isLocked && ps.isLocked === false) { if (user.isLocked && ps.isLocked === false) {
this.userFollowingService.acceptAllFollowRequests(user); await this.userFollowingService.acceptAllFollowRequests(user);
} }
// フォロワーにUpdateを配信 // フォロワーにUpdateを配信
this.accountUpdateService.publishToFollowers(user.id); await this.accountUpdateService.publishToFollowers(user.id);
const urls = updatedProfile.fields.filter(x => x.value.startsWith('https://')); const urls = updatedProfile.fields.filter(x => x.value.startsWith('https://'));
for (const url of urls) { for (const url of urls) {
this.verifyLink(url.value, user); await this.verifyLink(url.value, user);
} }
return iObj; return iObj;
}); });