summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-12-01 11:40:55 +0000
committerAndres Rey <[email protected]>2018-12-01 11:40:55 +0000
commit808b52c5d3ed702a7160adf563efb5492f101ff6 (patch)
tree94fc6e422e19f99e1da722a41dd349faa47ee578 /src
parentba28bd076a12693ab0a065526d6f601770ccb83d (diff)
Add "image" to the list of keys to search for
Diffstat (limited to 'src')
-rw-r--r--src/Readability.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Readability.php b/src/Readability.php
index 8c55e69..95fe780 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -373,6 +373,7 @@ class Readability
// get main image
$key = current(array_intersect([
+ 'image',
'og:image',
'twitter:image'
], array_keys($values)));