enhance(backend): ハッシュタグのランキングをローカルユーザーに限定する (MisskeyIO#570)
This commit is contained in:
		
							parent
							
								
									9bd82d07b2
								
							
						
					
					
						commit
						a89d6b912c
					
				packages/backend/src/core
|  | @ -56,8 +56,10 @@ export class HashtagService { | ||||||
| 	public async updateHashtag(user: { id: MiUser['id']; host: MiUser['host']; }, tag: string, isUserAttached = false, inc = true) { | 	public async updateHashtag(user: { id: MiUser['id']; host: MiUser['host']; }, tag: string, isUserAttached = false, inc = true) { | ||||||
| 		tag = normalizeForSearch(tag); | 		tag = normalizeForSearch(tag); | ||||||
| 
 | 
 | ||||||
|  | 		if (this.userEntityService.isLocalUser(user)) { | ||||||
| 			// TODO: サンプリング
 | 			// TODO: サンプリング
 | ||||||
| 			this.updateHashtagsRanking(tag, user.id); | 			this.updateHashtagsRanking(tag, user.id); | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		const index = await this.hashtagsRepository.findOneBy({ name: tag }); | 		const index = await this.hashtagsRepository.findOneBy({ name: tag }); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue