Use correct fullname prefixes for message parents

Previously, all parent_id values would be prefixed with t4_ (message),
even if the message was from a comment, which would actually have either
a comment or link parent.