From c265c05daacd8d31976a936cd5cb0dc7be756052 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 8 Jun 2024 09:05:04 +1000 Subject: [PATCH] Update key image checker --- slices/admin/decorators/posts/decorator.rb | 2 +- slices/main/decorators/posts/decorator.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slices/admin/decorators/posts/decorator.rb b/slices/admin/decorators/posts/decorator.rb index a5b4ede..dfee5dd 100644 --- a/slices/admin/decorators/posts/decorator.rb +++ b/slices/admin/decorators/posts/decorator.rb @@ -42,7 +42,7 @@ module Admin def key_image if photos? - return photos.first["url"] + return photos.first["value"] end inline_images.first[1] if inline_images diff --git a/slices/main/decorators/posts/decorator.rb b/slices/main/decorators/posts/decorator.rb index 028d606..91a7831 100644 --- a/slices/main/decorators/posts/decorator.rb +++ b/slices/main/decorators/posts/decorator.rb @@ -42,7 +42,7 @@ module Main def key_image if photos? - return photos.first["url"] + return photos.first["value"] end if videos?