diff --git a/bridges/DribbbleBridge.php b/bridges/DribbbleBridge.php
index 01cfb21ab3c..e3452658637 100644
--- a/bridges/DribbbleBridge.php
+++ b/bridges/DribbbleBridge.php
@@ -86,7 +86,7 @@ private function findJsonForShot($shot, $json){
private function getImageTag($preview_path, $title){
return sprintf(
- '
',
+ '
',
$this->getFullSizeImagePath($preview_path),
$preview_path,
$title
@@ -94,6 +94,11 @@ private function getImageTag($preview_path, $title){
}
private function getFullSizeImagePath($preview_path){
- return explode('?compress=1', $preview_path)[0];
+ // Get last image from srcset
+ $src_set_urls = explode(',', $preview_path);
+ $url = end($src_set_urls);
+ $url = explode(' ', $url)[1];
+
+ return htmlspecialchars_decode($url);
}
}