blob: 37ad79b9f0fa59ccc0ce57a23dad5201df9d7d4a [file] [log] [blame]
Adrià Vilanova Martínez069287e2024-05-31 19:42:58 +02001/**
2 * @deprecated The feature behind this response modifier has been deprecated.
3 * This code will soon be removed once we're sure the feature won't come back.
4 */
Adrià Vilanova Martíneza38faee2024-05-16 19:52:57 +02005const removeUserAbuseEventsInViewThread = {
6 urlRegex: /api\/ViewThread/i,
7 featureGated: true,
8 features: ['fixpekb269560789'],
9 isEnabled(options) {
10 return options['fixpekb269560789'];
11 },
12 async interceptor(_, response) {
13 if (response?.[1]?.[13]?.[8]?.[7]) {
14 delete response[1][13][8][7];
15 }
16 return response;
17 },
18};
19
20export default removeUserAbuseEventsInViewThread;