From 6b47971e2044f7cc6fee5e45dd7087411ac7b064 Mon Sep 17 00:00:00 2001 From: Toni Sevener Date: Tue, 14 Mar 2023 18:17:22 -0500 Subject: [PATCH] Bug fix from article load - update WMFArticle's thumbnail url with new summary thumbnail url --- WMF Framework/SummaryExtensions.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WMF Framework/SummaryExtensions.swift b/WMF Framework/SummaryExtensions.swift index 589eaccfe76..63c96467911 100644 --- a/WMF Framework/SummaryExtensions.swift +++ b/WMF Framework/SummaryExtensions.swift @@ -63,6 +63,11 @@ extension WMFArticle { imageWidth = NSNumber(value: 0) imageHeight = NSNumber(value: 0) } + + if let thumbnail = summary.thumbnail { + thumbnailURLString = thumbnail.source + thumbnailURL = thumbnail.url + } wikidataDescription = summary.articleDescription wikidataID = summary.wikidataID