Reverse selection order of link preview description
This commit is contained in:
parent
a98e134004
commit
4c52232d24
@ -143,7 +143,7 @@ extension Element.LocalizedMetadata {
|
|||||||
self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? ""
|
self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? ""
|
||||||
self.linkPreviewImage = log
|
self.linkPreviewImage = log
|
||||||
.linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source)
|
.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
|
self.linkPreviewDescription = log
|
||||||
.required(linkPreviewDescription, name: "linkPreviewDescription", source: source)
|
.required(linkPreviewDescription, name: "linkPreviewDescription", source: source)
|
||||||
.ifNil(markAsIncomplete) ?? ""
|
.ifNil(markAsIncomplete) ?? ""
|
||||||
@ -184,7 +184,7 @@ extension Element.LocalizedMetadata {
|
|||||||
self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? ""
|
self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? ""
|
||||||
self.linkPreviewImage = log
|
self.linkPreviewImage = log
|
||||||
.linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source)
|
.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
|
self.linkPreviewDescription = log
|
||||||
.required(linkPreviewDescription, name: "linkPreviewDescription", source: source)
|
.required(linkPreviewDescription, name: "linkPreviewDescription", source: source)
|
||||||
.ifNil(markAsIncomplete) ?? ""
|
.ifNil(markAsIncomplete) ?? ""
|
||||||
|
Loading…
Reference in New Issue
Block a user