mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-19 21:54:58 -04:00
check that gallery id exists
This commit is contained in:
@@ -116,6 +116,7 @@ module.exports = function(fetch) {
|
||||
for(var i = 0; i < post.gallery_data.items.length; i++) {
|
||||
let id = post.gallery_data.items[i].media_id
|
||||
if(post.media_metadata[id]) {
|
||||
if(post.media_metadata[id].p[0]) {
|
||||
let item = { source: null, thumbnail: null, large: null }
|
||||
if(post.media_metadata[id].s && post.media_metadata[id].p[0].u) {
|
||||
item = {
|
||||
@@ -129,6 +130,7 @@ module.exports = function(fetch) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let comms = []
|
||||
for(var i = 0; i < comments.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user