Personally, I believe it's a two-step script/routine:
TOR exit nodes first get assigned the usual UID depending on IP, in a second step are masked as "000000".
For some reason that 2nd step isn't applied when hovering over a postID from outside the bread that TOR post was made.