diff --git a/app/presenters/content_item/updatable.rb b/app/presenters/content_item/updatable.rb index bd43cdec3..14182fd55 100644 --- a/app/presenters/content_item/updatable.rb +++ b/app/presenters/content_item/updatable.rb @@ -14,7 +14,7 @@ def history end def first_public_at - content_item["details"]["first_public_at"] + content_item["details"]["first_public_at"] || content_item["first_published_at"] end def public_updated_at diff --git a/test/presenters/content_item/updatable_test.rb b/test/presenters/content_item/updatable_test.rb index 080bab5f4..a2d3ce76e 100644 --- a/test/presenters/content_item/updatable_test.rb +++ b/test/presenters/content_item/updatable_test.rb @@ -35,8 +35,8 @@ class << @updatable def content_item { 'public_updated_at' => '2002-02-02', + 'first_published_at' => '2001-01-01', 'details' => { - 'first_public_at' => '2001-01-01', 'change_history' => [ { 'note' => 'note',