Skip to content

Commit 09d6f95

Browse files
committed
Fix: Instagram waterfall showing again following shutdown of /media url from IG
1 parent 3e254e7 commit 09d6f95

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/pages/PageProject.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ export default {
149149
var handle = response.instagram_handle
150150
this.fetchInstagramPosts(response => {
151151
var instaItems = {}
152-
for (var i = 0; i < response.items.length; i++) {
153-
var item = response.items[i]
152+
var items = response.user.media.nodes
153+
for (var i = 0; i < items.length; i++) {
154+
var item = items[i]
154155
instaItems[i] = {
155-
src: item.images.standard_resolution.url,
156-
caption: item.caption.text.split(/\r?\n/)
156+
src: item.thumbnail_resources[2].src,
157+
caption: item.caption.split(/\r?\n/)
157158
}
158159
}
159160
this.instagram = instaItems

src/store/Methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default {
199199
},
200200
fetchInstagramPosts: function (cb) {
201201
axios
202-
.get('https://igpi.ga/displacedseries/media/?count=20')
202+
.get('https://igpi.ga/displacedseries/?__a=1')
203203
.then(response => { cb(response.data) })
204204
},
205205
// ----------------------------------------------------- Fetch project images

0 commit comments

Comments
 (0)