decord/source/6833_reportFalsePositive.js
2026-07-20 16:05:17 +00:00

34 lines
1.9 KiB
JavaScript

// Module ID: 6833
// Function ID: 54020
// Name: reportFalsePositive
// Dependencies: []
// Exports: reportFailedSendFalsePositive, reportFalsePositive, sendMessagesForScanning, sendMultiChannelMessagesForScanning
// Module 6833 (reportFalsePositive)
const Endpoints = require(dependencyMap[0]).Endpoints;
const _module = require(dependencyMap[2]);
const result = _module.fileFinishedImporting("modules/explicit_media_redaction/ExplicitMediaRedactionActionCreators.tsx");
export const reportFalsePositive = function reportFalsePositive(channel_id, message_id, attachment_ids, embed_ids) {
const HTTP = require(dependencyMap[1]).HTTP;
let obj = { url: Endpoints.EXPLICIT_MEDIA_REPORT_FALSE_POSITIVE, body: obj, rejectWithError: false };
obj = { channel_id, message_id, attachment_ids, embed_ids };
return HTTP.post(obj);
};
export const reportFailedSendFalsePositive = function reportFailedSendFalsePositive(channelId, messageId, closure_2, closure_3) {
const HTTP = require(dependencyMap[1]).HTTP;
let obj = { url: Endpoints.EXPLICIT_MEDIA_SENDER_REPORT_FALSE_POSITIVE, body: obj, rejectWithError: false };
obj = { channel_id: channelId, message_id: messageId, attachment_ids: closure_2, filenames: closure_3 };
return HTTP.post(obj);
};
export const sendMessagesForScanning = function sendMessagesForScanning(channel_id, message_ids) {
const HTTP = require(dependencyMap[1]).HTTP;
let obj = { url: Endpoints.EXPLICIT_MEDIA_SCAN_MESSAGES(channel_id), body: obj, rejectWithError: false };
obj = { message_ids };
return HTTP.patch(obj);
};
export const sendMultiChannelMessagesForScanning = function sendMultiChannelMessagesForScanning(arr) {
const mapped = arr.map((channel_id) => ({ channel_id: channel_id.channel_id, message_id: channel_id.id }));
const HTTP = require(dependencyMap[1]).HTTP;
return HTTP.patch({ url: Endpoints.EXPLICIT_MEDIA_SCAN_MULTI_CHANNEL_MESSAGES, body: { messages: mapped }, rejectWithError: false });
};