I'm not sure if this is a bug or an intended bahaviour, but list=blocks returns inconsistent values if the queried user is reblocked. Let's say some user is blocked by Sysop1, and then reblocked by Sysop2 as below:
{ "by": "Sysop1", "byid": "Sysop1's userid", "timestamp": "2022-07-01T00:00:00Z", // the time at which the user was initially blocked "expiry": "infinity", "reason": "block reason" } { "by": "Sysop2", "byid": "Sysop2's userid", "timestamp": "2022-08-01T00:00:00Z", // the time at which the user was reblocked "expiry": "infinity", "reason": "updated block reason" // reason modified }
Then, the API returns the following response:
{ "by": "Sysop2", // updated "byid": "Sysop2's userid", // updated "timestamp": "2022-07-01T00:00:00Z", // not updated "expiry": "infinity", "reason": "updated block reason" // updated }
My question is, is this intended? If it's not, I'd appreciate it if anyone could fix it.