From 9c86ac7478f4b3b5ccda2854f0c0fbfc87b27a4b Mon Sep 17 00:00:00 2001 From: Ilyeo Date: Fri, 28 Jun 2024 11:01:27 -0600 Subject: [PATCH] fixup! Skip pipeline on serializers --- app/serializers/schema_blogpost_serializer.rb | 4 ++-- app/serializers/schema_organization_serializer.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/serializers/schema_blogpost_serializer.rb b/app/serializers/schema_blogpost_serializer.rb index 4b263ed..d1bd422 100644 --- a/app/serializers/schema_blogpost_serializer.rb +++ b/app/serializers/schema_blogpost_serializer.rb @@ -21,7 +21,7 @@ def base 'datePublished': entry.created_at.strftime('%Y-%m-%d'), 'dateModified': entry.updated_at.strftime('%Y-%m-%d'), 'articleBody': entry.body, - 'image': context.image_url('logo', skip_pipeline: true), + 'image': context.image_url('logo.png'), 'inLanguage': 'en-US', 'copyrightYear': entry.created_at.year, 'keywords': [entry.channel_name, 'MagmaLabs TIL', 'BlogPost', 'Today I Learned'], @@ -56,7 +56,7 @@ def publisher 'url': 'https://www.magmalabs.io', 'logo': { '@type': 'ImageObject', - 'url': context.image_url('magma-logo', skip_pipeline: true) + 'url': context.image_url('magma-logo.svg') } } } diff --git a/app/serializers/schema_organization_serializer.rb b/app/serializers/schema_organization_serializer.rb index 3ddfeab..168758a 100644 --- a/app/serializers/schema_organization_serializer.rb +++ b/app/serializers/schema_organization_serializer.rb @@ -8,7 +8,7 @@ def to_jsonld_data '@context': 'http://schema.org', '@type': 'Organization', 'url': context.root_url, - 'logo': context.image_url('magma-logo', skip_pipeline: true) + 'logo': context.image_url('magma-logo.svg') }.merge(same_as).to_json end