@@ -202,11 +202,12 @@ export function deriveItemData({
202
202
} ) {
203
203
return {
204
204
...item ,
205
+ savedId : node ?. savedId || false ,
205
206
authors : item ?. preview ?. authors || itemEnrichment ?. authors || item ?. authors || false ,
206
207
title : title ( { item, itemEnrichment, node } ) ,
207
208
thumbnail : thumbnail ( { item, itemEnrichment } ) ,
208
209
excerpt : excerpt ( { item, itemEnrichment } ) ,
209
- publisher : publisher ( { item, itemEnrichment, passedPublisher } ) ,
210
+ publisher : publisher ( { item, itemEnrichment, passedPublisher, node } ) ,
210
211
publisherLogo : item ?. domainMetadata ?. logo || false ,
211
212
externalUrl : externalUrl ( { item, itemEnrichment, utmId } ) ,
212
213
// Temporary fix for the share modal and other possible areas that need the external url
@@ -278,8 +279,8 @@ function thumbnail({ item, itemEnrichment }) {
278
279
* @param {object } item An item returned from the server
279
280
* @returns {string } The best text to display as the publisher of this item
280
281
*/
281
- function publisher ( { item, itemEnrichment, passedPublisher } ) {
282
- const urlToUse = item ?. givenUrl || item ?. resolvedUrl
282
+ function publisher ( { item, itemEnrichment, passedPublisher, node } ) {
283
+ const urlToUse = item ?. givenUrl || item ?. resolvedUrl || node ?. url
283
284
const derivedDomain = domainForUrl ( urlToUse )
284
285
const syndicatedPublisher = item ?. syndicatedArticle ?. publisher ?. name
285
286
//prettier-ignore
0 commit comments