mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 23:25:41 +01:00
PV集計はローカルユーザーのみに
This commit is contained in:
parent
21c1e086f9
commit
771348e887
1 changed files with 6 additions and 4 deletions
|
@ -139,11 +139,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
throw new ApiError(meta.errors.noSuchUser);
|
||||
}
|
||||
|
||||
if (user.host == null) {
|
||||
if (me == null && ip != null) {
|
||||
this.perUserPvChart.commitByVisitor(user, ip);
|
||||
} else if (me && me.id !== user.id) {
|
||||
this.perUserPvChart.commitByUser(user, me.id);
|
||||
}
|
||||
}
|
||||
|
||||
return await this.userEntityService.pack(user, me, {
|
||||
detail: true,
|
||||
|
|
Loading…
Reference in a new issue