A post entity snippet I keep around. Inspired by the model module.