fix metadata retrieval for post revisions