Adrià Vilanova Martínez | 069287e | 2024-05-31 19:42:58 +0200 | [diff] [blame^] | 1 | /** |
| 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ínez | a38faee | 2024-05-16 19:52:57 +0200 | [diff] [blame] | 5 | const removeUserAbuseEventsInViewForum = { |
| 6 | urlRegex: /api\/ViewForum/i, |
| 7 | featureGated: true, |
| 8 | features: ['fixpekb269560789'], |
| 9 | isEnabled(options) { |
| 10 | return options['fixpekb269560789']; |
| 11 | }, |
| 12 | async interceptor(_, response) { |
| 13 | if (response?.[1]?.[6]?.[8]?.[7]) { |
| 14 | delete response[1][6][8][7]; |
| 15 | } |
| 16 | return response; |
| 17 | }, |
| 18 | }; |
| 19 | |
| 20 | export default removeUserAbuseEventsInViewForum; |