-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension.json
112 lines (112 loc) · 4.2 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "MediaModeration",
"version": "2.0.0",
"author": [
"Core Platform & Trust and Safety Teams",
"Trust and Safety Product Team"
],
"url": "https://www.mediawiki.org/wiki/Extension:MediaModeration",
"descriptionmsg": "mediamoderation-desc",
"license-name": "GPL-2.0-or-later",
"type": "other",
"requires": {
"MediaWiki": ">= 1.43"
},
"AutoloadClasses": {
"MediaWiki\\Extension\\MediaModeration\\Maintenance\\ImportExistingFilesToScanTable": "maintenance/importExistingFilesToScanTable.php",
"MediaWiki\\Extension\\MediaModeration\\Maintenance\\UpdateMetrics": "maintenance/updateMetrics.php",
"MediaWiki\\Extension\\MediaModeration\\Maintenance\\ResendMatchEmails": "maintenance/resendMatchEmails.php",
"MediaWiki\\Extension\\MediaModeration\\Maintenance\\DebugPhotoDNA": "maintenance/debugPhotoDNA.php",
"MediaWiki\\Extension\\MediaModeration\\Maintenance\\ScanFilesInScanTable": "maintenance/scanFilesInScanTable.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\MediaModeration\\": "src/"
},
"TestAutoloadClasses": {
"MediaWiki\\Extension\\MediaModeration\\Tests\\Integration\\Services\\MediaModerationStatsFactoryHelperTestTrait": "tests/phpunit/integration/Services/MediaModerationStatsFactoryHelperTestTrait.php",
"MediaWiki\\Extension\\MediaModeration\\Tests\\Integration\\InsertMockFileDataTrait": "tests/phpunit/integration/InsertMockFileDataTrait.php"
},
"Hooks": {
"UploadComplete": "UploadCompleteHandler",
"LoadExtensionSchemaUpdates": "SchemaChangesHandler"
},
"HookHandlers": {
"UploadCompleteHandler": {
"class": "MediaWiki\\Extension\\MediaModeration\\Hooks\\Handlers\\UploadCompleteHandler",
"services": [
"MediaModerationFileProcessor",
"MediaModerationDatabaseLookup",
"MediaModerationEmailer",
"MainConfig"
]
},
"SchemaChangesHandler": {
"class": "MediaWiki\\Extension\\MediaModeration\\Hooks\\Handlers\\SchemaChangesHandler"
}
},
"JobClasses": {
"mediaModerationScanFileJob": {
"class": "MediaWiki\\Extension\\MediaModeration\\Job\\MediaModerationScanFileJob",
"services": [
"MediaModerationFileScanner"
],
"needsPage": false
}
},
"ServiceWiringFiles": [
"src/ServiceWiring.php"
],
"MessagesDirs": {
"MediaModeration": [
"i18n"
]
},
"ConfigRegistry": {
"MediaModeration": "GlobalVarConfig::newInstance"
},
"config": {
"MediaModerationDeveloperMode": {
"value": true,
"description": "If the extension is in developer mode. Make sure this is false in production."
},
"MediaModerationAddToScanTableOnUpload": {
"value": true,
"description": "If MediaModeration will add to the mediamoderation_scan table on upload. Useful to set to false when bulk adding files in local environment."
},
"MediaModerationPhotoDNAMockServiceFiles": {
"value": {
"FilesToIsMatchMap": [],
"FilesToStatusCodeMap": []
},
"description": "For CI and development setups. Two arrays of files names, FilesToIsMatchMap should contain a list of file names that the mock service says are a match to PhotoDNA's database; FilesToStatusCodeMap should contain a list of files mapped to PhotoDNA status codes. Files not in these maps will return STATUS_OK and IsMatch=false."
},
"MediaModerationPhotoDNAUrl": {
"value": "https://api.microsoftmoderator.com/photodna/v1.0/Match",
"description": "URL to PhotoDNA service endpoint."
},
"MediaModerationThumbnailWidth": {
"value": 320,
"description": "Width, in pixels, that MediaModeration will use when transforming files to a thumbnail to send to PhotoDNA. Default is 320, which should already exist as a pre-rendered thumbnail per $wgUploadThumbnailRenderMap in production."
},
"MediaModerationPhotoDNASubscriptionKey": {
"value": "",
"description": "Key for access to PhotoDNA service endpoint."
},
"MediaModerationRecipientList": {
"value": [],
"description": "List of emails to be notified when suspicious content is detected."
},
"MediaModerationFrom": {
"value": "",
"description": "Email from which notification are sent."
},
"MediaModerationHttpProxy": {
"value": null,
"description": "HTTP proxy to use when calling PhotoDNA service."
}
},
"DatabaseVirtualDomains": [
"virtual-mediamoderation"
],
"manifest_version": 2
}