File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ To retrieve the data of your channel follow the official instagram doc: https://
3434Changelog
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
Original file line number Diff line number Diff line change 88
99 .instagram-widget-container {
1010 text-align : center ;
11- background : @color__dark ;
1211 padding-top : 50px ;
1312 padding-bottom : 100px ;
1413
Original file line number Diff line number Diff 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 ( / v p \/ [ ^ \/ ] * / , 'hphotos-xfp1' ) ;
7576 } ,
7677
7778 /**
You can’t perform that action at this time.
0 commit comments