diff --git a/lib/routes/patreon/feed.ts b/lib/routes/patreon/feed.ts
index 1cf45c833bf823..faf814be539c09 100644
--- a/lib/routes/patreon/feed.ts
+++ b/lib/routes/patreon/feed.ts
@@ -98,7 +98,7 @@ async function handler(ctx) {
}
}
if (attributes.video_preview) {
- relationships.video_preview = posts.included.find((i) => Number.parseInt(i.id) === attributes.video_preview.media_id) as unknown as MediaRelation;
+ relationships.video_preview = posts.included.find((i) => Number.parseInt(i.id) === attributes.video_preview?.media_id) as unknown as MediaRelation;
}
return {
@@ -110,7 +110,7 @@ async function handler(ctx) {
}),
link: attributes.url,
pubDate: parseDate(attributes.published_at),
- image: attributes.thumbnail?.url ?? attributes.image.url,
+ image: attributes.thumbnail?.url ?? attributes.image?.url,
category: relationships.user_defined_tags?.map((tag) => tag.attributes.value),
};
});
diff --git a/lib/routes/patreon/templates/description.art b/lib/routes/patreon/templates/description.art
index 8e69481239e88f..3a5da8e4e64b81 100644
--- a/lib/routes/patreon/templates/description.art
+++ b/lib/routes/patreon/templates/description.art
@@ -23,6 +23,8 @@
{{ else if attributes.post_type === 'video_embed' || attributes.post_type === 'link' }}

+{{ else if attributes.post_type === 'text_only' }}
+
{{ else }}
Post type: "{{ attributes.post_type }}" is not supported.