{
	"name": "Comments",
	"version": "5.0",
	"author": [
		"David Pean",
		"Misza",
		"Jack Phoenix",
		"Adam Carter/UltrasonicNXT",
		"Samantha Nguyen"
	],
	"license-name": "GPL-2.0-or-later",
	"url": "https://www.mediawiki.org/wiki/Extension:Comments",
	"descriptionmsg": "comments-desc",
	"type": "parserhook",
	"requires": {
		"MediaWiki": ">= 1.35.3"
	},
	"callback": "CommentsHooks::registerExtension",
	"GroupPermissions": {
		"*": {
			"comment": true
		},
		"commentadmin": {
			"commentadmin": true
		},
		"autoconfirmed": {
			"commentlinks": true
		}
	},
	"AvailableRights": [
		"comment",
		"commentadmin",
		"commentlinks",
		"comment-delete-own"
	],
	"DefaultUserOptions": {
		"echo-subscriptions-web-mention-comment": true,
		"echo-subscriptions-email-mention-comment": true
	},
	"SpecialPages": {
		"CommentIgnoreList": "CommentIgnoreList"
	},
	"LogTypes": [
		"comments"
	],
	"FilterLogTypes": {
		"comments": true
	},
	"LogActionsHandlers": {
		"comments/add": "CommentsLogFormatter",
		"comments/delete": "LogFormatter"
	},
	"APIModules": {
		"commentblock": "CommentBlockAPI",
		"commentdelete": "CommentDeleteAPI",
		"commentlatestid": "CommentLatestIdAPI",
		"commentlist": {
			"class": "CommentListAPI",
			"services": [
				"ReadOnlyMode"
			]
		},
		"commentsubmit": "CommentSubmitAPI",
		"commentvote": "CommentVoteAPI"
	},
	"MessagesDirs": {
		"Comments": [
			"i18n"
		]
	},
	"ExtensionMessagesFiles": {
		"CommentsAliases": "Comments.i18n.alias.php",
		"CommentsMagic": "Comments.i18n.magic.php",
		"NumberOfCommentsMagic": "Comments.i18n.magic.php"
	},
	"AutoloadClasses": {
		"MigrateOldCommentsBlockUserColumnsToActor": "maintenance/migrateOldCommentsBlockUserColumnsToActor.php",
		"MigrateOldCommentsUserColumnsToActor": "maintenance/migrateOldCommentsUserColumnsToActor.php",
		"MigrateOldCommentsVoteUserColumnsToActor": "maintenance/migrateOldCommentsVoteUserColumnsToActor.php",
		"Comment": "includes/Comment.php",
		"CommentsPage": "includes/CommentsPage.php",
		"NumberOfComments": "includes/parser/NumberOfComments.php",
		"DisplayComments": "includes/parser/DisplayComments.php",
		"CommentFunctions": "includes/CommentFunctions.php",
		"CommentIgnoreList": "includes/specials/CommentIgnoreList.php",
		"CommentsLogFormatter": "includes/CommentsLogFormatter.php",
		"CommentsHooks": "includes/CommentsHooks.php",
		"CommentBlockAPI": "includes/api/CommentBlockAPI.php",
		"CommentDeleteAPI": "includes/api/CommentDeleteAPI.php",
		"CommentLatestIdAPI": "includes/api/CommentLatestIdAPI.php",
		"CommentListAPI": "includes/api/CommentListAPI.php",
		"CommentSubmitAPI": "includes/api/CommentSubmitAPI.php",
		"CommentVoteAPI": "includes/api/CommentVoteAPI.php",
		"EchoMentionCommentPresentationModel": "includes/notifications/EchoMentionCommentPresentationModel.php"
	},
	"ResourceModules": {
		"ext.comments.css": {
			"styles": [
				"resources/css/Loader.css",
				"resources/css/Comments.css"
			],
			"targets": [
				"desktop",
				"mobile"
			]
		},
		"ext.comments.js": {
			"scripts": "resources/js/Comment.js",
			"dependencies": [
				"mediawiki.api",
				"mediawiki.jqueryMsg",
				"mediawiki.user"
			],
			"messages": [
				"comments-voted-label",
				"comments-loading",
				"comments-auto-refresher-pause",
				"comments-auto-refresher-enable",
				"comments-cancel-reply",
				"comments-reply-to",
				"comments-block-warning-anon",
				"comments-block-warning-user",
				"comments-delete-warning",
				"comments-continue-editing-btn",
				"apierror-nosuchpageid",
				"comments-is-spam",
				"comments-links-are-forbidden",
				"showpreview",
				"previewnote"
			],
			"targets": [
				"desktop",
				"mobile"
			]
		}
	},
	"ResourceFileModulePaths": {
		"localBasePath": "",
		"remoteExtPath": "Comments"
	},
	"Hooks": {
		"BeforeCreateEchoEvent": "CommentsHooks::onBeforeCreateEchoEvent",
		"ParserFirstCallInit": "CommentsHooks::onParserFirstCallInit",
		"LoadExtensionSchemaUpdates": "CommentsHooks::onLoadExtensionSchemaUpdates",
		"MagicWordwgVariableIDs": "NumberOfComments::onMagicWordwgVariableIDs",
		"ParserGetVariableValueSwitch": "NumberOfComments::onParserGetVariableValueSwitch",
		"ArticlePurge": "CommentsHooks::onArticlePurge"
	},
	"config": {
		"CommentsDefaultAvatar": {
			"description": "URL to the default avatar image when the SocialProfile extension is NOT installed and thus its avatars aren't usable",
			"value": "http://www.shoutwiki.com/w/extensions/SocialProfile/avatars/default_ml.gif"
		},
		"CommentsSortDescending": {
			"description": "Sort comments in descending order?",
			"value": false
		},
		"CommentsInRecentChanges": {
			"description": "Display the additions and deletions of comments in the list of recent changes?",
			"value": false
		},
		"CommentsAbuseFilterGroup": {
			"description": "This is the custom group name for AbuseFilter for when the AbuseFilter extension is enabled. It ensures that AbuseFilter only pulls the filters related to Comments. If you would like AbuseFilter to pull all of the filters, enter 'default' here.",
			"value": "comment"
		}
	},
	"manifest_version": 2
}
