Skip to content

Commit b966152

Browse files
committed
Update the logic for social_image_url on the detail page
1 parent fcac171 commit b966152

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Planet/TemplateBrowser/Template.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Template: Codable, Identifiable {
141141
"build_timestamp": Int(Date().timeIntervalSince1970),
142142
"style_css_sha256": styleCSSHash ?? "",
143143
"current_item_type": "blog",
144-
"social_image_url": article.socialImageURL?.absoluteString ?? "",
144+
"social_image_url": article.socialImageURL?.absoluteString ?? article.planet.ogImageURLString,
145145
]
146146
context.merge(renderCustomCode(planet: planet, context: context)) { (_, new) in new }
147147
let loader = FileSystemLoader(paths: [Path(blogPath.deletingLastPathComponent().path)])

Planet/versioning.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 1007
1+
CURRENT_PROJECT_VERSION = 1012

0 commit comments

Comments
 (0)