blob: ccaeb9550bb8b15b3c27f95064ed43813db2a944 [file] [log] [blame]
const removeUserAbuseEventsInViewThread = {
urlRegex: /api\/ViewThread/i,
featureGated: true,
features: ['fixpekb269560789'],
isEnabled(options) {
return options['fixpekb269560789'];
},
async interceptor(_, response) {
if (response?.[1]?.[13]?.[8]?.[7]) {
delete response[1][13][8][7];
}
return response;
},
};
export default removeUserAbuseEventsInViewThread;