API response of deleted/duplicated images

Site and Policy » API response of deleted/duplicated images Search Posts
Background Pony #6828
Recently I’ve noticed derpi’s JSON API response for deleted/duplicated images have changed.
 
As an example, here’s the JSON response of /106.json, recorded a few months ago:
 
{"id":106,"created_at":"2012-01-08T14:08:46.000Z","updated_at":"2018-12-03T22:26:44.020Z","first_seen_at":"2012-01-08T14:08:46.000Z","duplicate_of":8747,"uploader_id":211195,"tags":"artist:coco-the-personer, cloud, cute, diapinkes, pinkie pie, pony, safe, solo","tag_ids":[81166,4462,23275,24249,37763,38185,40482,42350]}
 
The presence of duplicate_of key clearly indicates that this image is a duplicate of another and was removed.  
But now when I make the same request to /106.json, I get the full image metadata as if the image was never removed, and without duplicate_of field or any information about the image’s removal.  
Same with deleted images - the response has no information about its deletion and no deletion_reason field.
 
While this is a welcome change if you want the original metadata of a removed image, this also means that there’s no easy way to detect the image was removed by only parsing the JSON.  
I guess I could parse the HTTP response of the non-api image page to detect redirections, but is that the only way to do it now?  
If the deletion_reason and duplicate_of fields could be re-added to the JSON response for deleted/duplicated images it would be much easier to detect and handle those cases.
 
(Also, as of now, all the urls within the JSON reponse of a removed image will 404, which is understandable but feels kinda… wrong? I think API responses should only return valid urls.)
Background Pony #6828
Apparently this was fixed some time after this was posted, and API responses are now back to the old behavior.  
Thank you devs.
Interested in advertising on Derpibooru? Click here for information!
Ministry of Image - Fanfiction Printing

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide