How can I distinguish deleted and not yet existing notes?

Is there some good way to obtain id of latest created note?

Or to check whether specific note is deleted or not yet existing? Currently both return Request failed: 404 - Not Found (this used to be different, not anymore)

For example, https://www.openstreetmap.org/note/3881941 existed but was hidden/deleted.

https://www.openstreetmap.org/note/3881941000 is not yet existing

Note: 3881955 | OpenStreetMap exists and is visible

Why it is useful: I have script that watches created notes, detects obvious vandalism notes and closes them. I run it when some anonymous note vandal becomes active. I wanted to reenable it and discovered that it now fails as response for not-yet-existing and used-to-be-existing notes is now the same.

5 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-can-i-distinguish-deleted-and-not-yet-existing-notes/103690