diff --git a/packages/backend/src/core/HashtagService.ts b/packages/backend/src/core/HashtagService.ts index eb192ee6da..23862180f1 100644 --- a/packages/backend/src/core/HashtagService.ts +++ b/packages/backend/src/core/HashtagService.ts @@ -56,8 +56,10 @@ export class HashtagService { public async updateHashtag(user: { id: MiUser['id']; host: MiUser['host']; }, tag: string, isUserAttached = false, inc = true) { tag = normalizeForSearch(tag); - // TODO: サンプリング - this.updateHashtagsRanking(tag, user.id); + if (this.userEntityService.isLocalUser(user)) { + // TODO: サンプリング + this.updateHashtagsRanking(tag, user.id); + } const index = await this.hashtagsRepository.findOneBy({ name: tag });