blob: eb40e8eb7d97e5531bec80fcfc42fbbdacfc4374 [file] [log] [blame]
Adrià Vilanova Martíneza38faee2024-05-16 19:52:57 +02001const removeUserAbuseEventsInViewForum = {
2 urlRegex: /api\/ViewForum/i,
3 featureGated: true,
4 features: ['fixpekb269560789'],
5 isEnabled(options) {
6 return options['fixpekb269560789'];
7 },
8 async interceptor(_, response) {
9 if (response?.[1]?.[6]?.[8]?.[7]) {
10 delete response[1][6][8][7];
11 }
12 return response;
13 },
14};
15
16export default removeUserAbuseEventsInViewForum;