History shows "undeleted" when it really means "published"

(Bug, Investigate , Priority: Critical, Test Status: No automated tests yet , Reported By Bad Link: Thing 3y284oe not found, )
Summary: That is, the creation record should say "published", but actually says "undeleted".
The issue is in this line. It is recording it as "restored" if there was already an OID defined -- but that's also true in the case of something being published for the first time. We need to figure out something smarter to do here.
This is marked as "Critical" solely because it is a data-level bug, not just a display-level one. Not the end of the world, but we should fix it ASAP.