Skip to content

Commit d5b5336

Browse files
committed
Merge branch 'release/4.3.0'
2 parents 1b508d0 + 6892753 commit d5b5336

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ To retrieve the data of your channel follow the official instagram doc: https://
3434
Changelog
3535
----------
3636

37+
* 4.3.0 - Fix squared imges url
3738
* 4.2.0 - Squared image configuration
3839
* 4.1.0 - Use only cropped images
3940
* 4.0.0 - API call optimization / Added configuration to do less call

view/frontend/web/css/source/_module.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
.instagram-widget-container {
1010
text-align: center;
11-
background: @color__dark;
1211
padding-top: 50px;
1312
padding-bottom: 100px;
1413

view/frontend/web/js/InstagramWidget.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ define([
3131
var img = this.images.low_resolution.url,
3232
url = this.link;
3333

34-
if (that.options.cropped_images == 1) {
34+
if (that.options.cropped_images === 1) {
3535
img = that._getSquaredPhoto(this.images.thumbnail.url);
3636
}
3737

@@ -71,7 +71,8 @@ define([
7171

7272

7373
_getSquaredPhoto: function (thumbnail) {
74-
return thumbnail.replace('s150x150/', 's320x320/');
74+
var thumb = thumbnail.replace('s150x150/', 's320x320/');
75+
return thumb.replace(/vp\/[^\/]*/, 'hphotos-xfp1');
7576
},
7677

7778
/**

0 commit comments

Comments
 (0)