fix admin/unnsfw-user not working

This commit is contained in:
bunnybeam 2025-07-10 22:49:00 +01:00
parent eca81b6494
commit 0191ea8844
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -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);
}); });
} }
} }

View file

@ -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,