Also decode attached image URLs

This commit is contained in:
Will Boyd
2020-12-28 14:50:39 -05:00
parent 828230dedd
commit f879a2e3fb
2 changed files with 55 additions and 24 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ function collectAttachedImages(data) {
.map(attachment => ({
id: attachment.post_id[0],
postId: attachment.post_parent[0],
url: attachment.attachment_url[0]
url: decodeURI(attachment.attachment_url[0])
}));
console.log(images.length + ' attached images found.');