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,
|
||||
});
|
||||
|
||||
await this.cacheService.userProfileCache.delete(ps.userId);
|
||||
|
||||
await this.moderationLogService.log(me, 'nsfwUser', {
|
||||
userId: ps.userId,
|
||||
userUsername: user.username,
|
||||
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,
|
||||
});
|
||||
|
||||
await this.cacheService.userProfileCache.delete(ps.userId);
|
||||
|
||||
await this.moderationLogService.log(me, 'unNsfwUser', {
|
||||
userId: ps.userId,
|
||||
userUsername: user.username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue