From 4c52232d24b700be2977169f009566a43121d3ed Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Mon, 29 Aug 2022 17:22:24 +0200 Subject: [PATCH] Reverse selection order of link preview description --- WebsiteGenerator/Content/Element+LocalizedMetadata.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift index 5cbd2dc..2781921 100644 --- a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift +++ b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift @@ -143,7 +143,7 @@ extension Element.LocalizedMetadata { self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? "" self.linkPreviewImage = log .linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source) - let linkPreviewDescription = data.linkPreviewDescription ?? data.subtitle ?? data.description + let linkPreviewDescription = data.linkPreviewDescription ?? data.description ?? data.subtitle self.linkPreviewDescription = log .required(linkPreviewDescription, name: "linkPreviewDescription", source: source) .ifNil(markAsIncomplete) ?? "" @@ -184,7 +184,7 @@ extension Element.LocalizedMetadata { self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? "" self.linkPreviewImage = log .linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source) - let linkPreviewDescription = data.linkPreviewDescription ?? data.subtitle ?? data.description + let linkPreviewDescription = data.linkPreviewDescription ?? data.description ?? data.subtitle self.linkPreviewDescription = log .required(linkPreviewDescription, name: "linkPreviewDescription", source: source) .ifNil(markAsIncomplete) ?? ""