best-scheduled-tweets
Advanced tools
Comparing version 1.4.11 to 1.5.0
{ | ||
"name": "best-scheduled-tweets", | ||
"version": "1.4.11", | ||
"version": "1.5.0", | ||
"description": "An opinionated library to extract the best links from scheduled tweets from a given Twitter account using Hootsuite and Facebook", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -10,5 +10,3 @@ import { coalesce } from 'object-path'; | ||
const result = links.map((link) => { | ||
const defaultImage = `https://placeholdit.imgix.net/~text?txtsize=60&bg=ffd300&txtclr=0000000%26text%3Dblog&txt=${encodeURIComponent( | ||
link.metadata.host, | ||
)}&w=500&h=240`; | ||
const defaultImage = 'https://placeimg.com/500/240/tech'; | ||
const image = coalesce(link.metadata, ['ogImage', 'twitterImageSrc'], defaultImage); | ||
@@ -15,0 +13,0 @@ |
4764613
124696