Skip to content

Commit

Permalink
Bug fix from article load - update WMFArticle's thumbnail url with ne…
Browse files Browse the repository at this point in the history
…w summary thumbnail url
  • Loading branch information
tonisevener committed Mar 14, 2023
1 parent fe96700 commit 6b47971
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WMF Framework/SummaryExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b47971

Please sign in to comment.