Abuse filter disallowing deletions causes incorrect display in the UI, HTTP 500 API response. I haven't been able to reproduce this locally, only on a production wiki.
To reproduce:
Visit https://id.wikipedia.org/wiki/MediaWiki:Copyright and then run the following JS in your browser to delete that page: [it should be deleted per T375789]
await ( new mw.Api() ).postWithToken( 'csrf', { action: 'delete', title: 'MediaWiki:Copyright', reason: 'Copyright message updates ([[phab:T375789|T375789]]): Delete unused message, the copyright footer on this wiki uses [[MediaWiki:Wikimedia-copyright]] instead' } );
The API returns a HTTP 500, HTML response:
Request from <my IP address> via cp3070 cp3070, Varnish XID 471260317 Upstream caches: cp3070 int Error: 500, Internal Server Error at Wed, 16 Oct 2024 19:38:10 GMT
Try to delete it from the user interface: https://id.wikipedia.org/w/index.php?title=MediaWiki:Copyright&action=delete
You get an error from AbuseFilter with very messed up formatting:
Expected behavior:
A readable AbuseFilter error.

