We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6fe9c0 commit e9303bbCopy full SHA for e9303bb
Embed/Adapters/Webpage.php
@@ -57,18 +57,20 @@ public function getImages () {
57
continue;
58
}
59
60
- if ($this->options['getBiggerImage']) {
61
- $imgs = FastImage::sortImagesBySize($imgs);
62
- }
63
-
64
foreach ($imgs as $imgs) {
65
if (!empty($imgs)) {
66
$images[] = $this->Url->getAbsolute($imgs);
67
68
69
70
71
- return array_unique($images);
+ $images = array_unique($images);
+
+ if ($this->options['getBiggerImage']) {
+ $images = FastImage::sortImagesBySize($images);
+ }
72
73
+ return $images;
74
75
76
public function getProviderIcons () {
0 commit comments