From a5dc056365c7748ba0adf991c53c721fc2b2c6f1 Mon Sep 17 00:00:00 2001 From: Miguel Michelson Martinez Date: Fri, 13 Oct 2023 00:59:30 -0300 Subject: [PATCH] mettag on articles --- app/controllers/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 72a44ab..c9fe46a 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -33,7 +33,7 @@ def show # url: Routes.articles_show_url(socket, :show, post.id), title: "#{@post.title} on Rauversion", description: "Read #{@post.title} by #{@post.user.username} on Rauversion.", - image: @post.cover_url(:small) + image: @post&.cover_url(:small)&.url, ) end