mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
Facebook scraper requires protocol (e.g. http) on og:image meta tags.
This commit is contained in:
parent
d87c5e2efa
commit
7d5d1a12ad
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ function getEmbedlyData(url) {
|
|||
// console.log(result)
|
||||
|
||||
if (!!result.data.images && !!result.data.images.length) // there may not always be an image
|
||||
result.data.thumbnailUrl = result.data.images[0].url.replace("http:", ""); // add thumbnailUrl as its own property and remove "http"
|
||||
result.data.thumbnailUrl = result.data.images[0].url // add thumbnailUrl as its own property and leave "http" in, Facebook scraper won't accept it as valid otherwise
|
||||
|
||||
if (result.data.authors && result.data.authors.length > 0) {
|
||||
result.data.sourceName = result.data.authors[0].name;
|
||||
|
|
Loading…
Add table
Reference in a new issue