alphagov/whitehall — pull request #1291 by vinayvinay (2014-02-27 12:47:44+00:00)
Title: Fix email formatter

When a first major edition is published we
enqueue a job to alert subscribers about it.
An editor updated a freshly published edition's
first_published_at timestamp and marked it as a
minor change. Due to an bug in the change history
generation logic, fixed in (http://git.io/Cds89w)
it created a change history entry for this minor
change as well.

So when this job was picked up for processing, it
added a line to indicate that an update happened
because it showed 2 change history entries.

Updated the logic to use a better way to determine
if the email is for a create or update, without inferring
it from change history.