PV集計はローカルユーザーのみに
This commit is contained in:
		
							parent
							
								
									21c1e086f9
								
							
						
					
					
						commit
						771348e887
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		|  | @ -139,10 +139,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { | ||||||
| 					throw new ApiError(meta.errors.noSuchUser); | 					throw new ApiError(meta.errors.noSuchUser); | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				if (me == null && ip != null) { | 				if (user.host == null) { | ||||||
| 					this.perUserPvChart.commitByVisitor(user, ip); | 					if (me == null && ip != null) { | ||||||
| 				} else if (me && me.id !== user.id) { | 						this.perUserPvChart.commitByVisitor(user, ip); | ||||||
| 					this.perUserPvChart.commitByUser(user, me.id); | 					} else if (me && me.id !== user.id) { | ||||||
|  | 						this.perUserPvChart.commitByUser(user, me.id); | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				return await this.userEntityService.pack(user, me, { | 				return await this.userEntityService.pack(user, me, { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue