Skip to content

Commit 5e69415

Browse files
committed
Use first_published_at
`details.first_public_at` is deprecated. They should be same, so no frontend changes are intended. https://trello.com/c/bMv5Tkgp
1 parent e66947f commit 5e69415

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/presenters/content_item/updatable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def history
1414
end
1515

1616
def first_public_at
17-
content_item["details"]["first_public_at"]
17+
content_item["details"]["first_public_at"] || content_item["first_published_at"]
1818
end
1919

2020
def public_updated_at

test/presenters/content_item/updatable_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class << @updatable
3535
def content_item
3636
{
3737
'public_updated_at' => '2002-02-02',
38+
'first_published_at' => '2001-01-01',
3839
'details' => {
39-
'first_public_at' => '2001-01-01',
4040
'change_history' => [
4141
{
4242
'note' => 'note',

0 commit comments

Comments
 (0)