Page MenuHomePhabricator

Api returns duplicate protection info
Closed, DuplicatePublicBUG REPORT

Description

Steps to reproduce:
Visit https://en.wikinews.org/w/api.php?action=query&titles=%227th%20Heaven%22%20television%20series%20comes%20to%20an%20end&prop=info&inprop=protection (among others)

Actual result
[...]
"protection": [
	{
		"type": "edit",
		"level": "sysop",
		"expiry": "infinity"
	},
	{
		"type": "move",
		"level": "sysop",
		"expiry": "infinity"
	},
	{
		"type": "edit",
		"level": "sysop",
		"expiry": "infinity"
	},
	{
		"type": "move",
		"level": "sysop",
		"expiry": "infinity"
	}
],
[...]
Expected result
[...]
"protection": [
	{
		"type": "edit",
		"level": "sysop",
		"expiry": "infinity"
	},
	{
		"type": "move",
		"level": "sysop",
		"expiry": "infinity"
	}
],
[...]