Adrià Vilanova MartÃnez | a38faee | 2024-05-16 19:52:57 +0200 | [diff] [blame^] | 1 | const removeUserAbuseEventsInViewThread = { |
2 | urlRegex: /api\/ViewThread/i, | ||||
3 | featureGated: true, | ||||
4 | features: ['fixpekb269560789'], | ||||
5 | isEnabled(options) { | ||||
6 | return options['fixpekb269560789']; | ||||
7 | }, | ||||
8 | async interceptor(_, response) { | ||||
9 | if (response?.[1]?.[13]?.[8]?.[7]) { | ||||
10 | delete response[1][13][8][7]; | ||||
11 | } | ||||
12 | return response; | ||||
13 | }, | ||||
14 | }; | ||||
15 | |||||
16 | export default removeUserAbuseEventsInViewThread; |