fix admin/unnsfw-user not working
This commit is contained in:
parent
eca81b6494
commit
0191ea8844
2 changed files with 4 additions and 2 deletions
|
|
@ -45,13 +45,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
alwaysMarkNsfw: true,
|
alwaysMarkNsfw: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await this.cacheService.userProfileCache.delete(ps.userId);
|
||||||
|
|
||||||
await this.moderationLogService.log(me, 'nsfwUser', {
|
await this.moderationLogService.log(me, 'nsfwUser', {
|
||||||
userId: ps.userId,
|
userId: ps.userId,
|
||||||
userUsername: user.username,
|
userUsername: user.username,
|
||||||
userHost: user.host,
|
userHost: user.host,
|
||||||
});
|
});
|
||||||
|
|
||||||
await this.cacheService.userProfileCache.delete(ps.userId);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
alwaysMarkNsfw: false,
|
alwaysMarkNsfw: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await this.cacheService.userProfileCache.delete(ps.userId);
|
||||||
|
|
||||||
await this.moderationLogService.log(me, 'unNsfwUser', {
|
await this.moderationLogService.log(me, 'unNsfwUser', {
|
||||||
userId: ps.userId,
|
userId: ps.userId,
|
||||||
userUsername: user.username,
|
userUsername: user.username,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue