diff --git a/src/components/ItemDialogContentRenderer.js b/src/components/ItemDialogContentRenderer.js index cea61d68..573ff75e 100644 --- a/src/components/ItemDialogContentRenderer.js +++ b/src/components/ItemDialogContentRenderer.js @@ -20,6 +20,16 @@ module.exports.render = function({settings, tweetsCount, itemInfo}) { return relativeDate(new Date(x)); }; + function getLinkedIn(itemInfo) { + if (itemInfo.extra && itemInfo.extra.override_linked_in) { + return itemInfo.extra.override_linked_in; + } + if (itemInfo.crunchbaseData && itemInfo.crunchbaseData.linkedin) { + return itemInfo.crunchbaseData.linkedin; + } + return ''; + } + function getRelationStyle(relation) { const relationInfo = fields.relation.valuesMap[relation] if (relationInfo && relationInfo.color) { @@ -625,6 +635,9 @@ module.exports.render = function({settings, tweetsCount, itemInfo}) { if (key === 'hide_license') { return ''; } + if (key === 'override_linked_in') { + return ''; + } if (key === 'audits') { const value = itemInfo.extra[key]; const lines = (value.map ? value : [value]).map( (auditInfo) => ` @@ -752,12 +765,12 @@ module.exports.render = function({settings, tweetsCount, itemInfo}) { ` : '' } - ${itemInfo.crunchbaseData && itemInfo.crunchbaseData.linkedin ? ` + ${getLinkedIn(itemInfo) ? `
LinkedIn
- - ${shortenUrl(itemInfo.crunchbaseData.linkedin)} + + ${shortenUrl(getLinkedIn(itemInfo))}
` : ''