mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-26 09:13:09 +02:00
fix
This commit is contained in:
parent
4c83663597
commit
a2f6bf3d5c
1 changed files with 9 additions and 9 deletions
|
@ -352,6 +352,15 @@ export class ApPersonService implements OnModuleInit {
|
||||||
// Register to the cache
|
// Register to the cache
|
||||||
this.cacheService.uriPersonCache.set(user.uri, user);
|
this.cacheService.uriPersonCache.set(user.uri, user);
|
||||||
|
|
||||||
|
// Register host
|
||||||
|
this.federatedInstanceService.fetch(host).then(async i => {
|
||||||
|
this.instancesRepository.increment({ id: i.id }, 'usersCount', 1);
|
||||||
|
this.fetchInstanceMetadataService.fetchInstanceMetadata(i);
|
||||||
|
if ((await this.metaService.fetch()).enableChartsForFederatedInstances) {
|
||||||
|
this.instanceChart.newUser(i.host);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//#region アバターとヘッダー画像をフェッチ
|
//#region アバターとヘッダー画像をフェッチ
|
||||||
try {
|
try {
|
||||||
const updates = await this.resolveAvatarAndBanner(user, person.icon, person.image);
|
const updates = await this.resolveAvatarAndBanner(user, person.icon, person.image);
|
||||||
|
@ -365,15 +374,6 @@ export class ApPersonService implements OnModuleInit {
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// Register host
|
|
||||||
this.federatedInstanceService.fetch(host).then(async i => {
|
|
||||||
this.instancesRepository.increment({ id: i.id }, 'usersCount', 1);
|
|
||||||
this.fetchInstanceMetadataService.fetchInstanceMetadata(i);
|
|
||||||
if ((await this.metaService.fetch()).enableChartsForFederatedInstances) {
|
|
||||||
this.instanceChart.newUser(i.host);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.usersChart.update(user, true);
|
this.usersChart.update(user, true);
|
||||||
|
|
||||||
// ハッシュタグ更新
|
// ハッシュタグ更新
|
||||||
|
|
Loading…
Reference in a new issue