mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	返すタグの数を制限
This commit is contained in:
		
							parent
							
								
									8c6856d894
								
							
						
					
					
						commit
						d9fe9cc5df
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -60,5 +60,7 @@ export default () => new Promise(async (res, rej) => {
 | 
				
			||||||
	// タグを人気順に並べ替え
 | 
						// タグを人気順に並べ替え
 | 
				
			||||||
	tags = tags.sort((a, b) => b.count - a.count);
 | 
						tags = tags.sort((a, b) => b.count - a.count);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tags = tags.slice(0, 30);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	res(tags);
 | 
						res(tags);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue