Allow cover images to have query string

This commit is contained in:
Will Boyd
2025-04-16 16:37:47 -04:00
parent 7899dd944d
commit adcd7c672f
+1 -1
View File
@@ -122,7 +122,7 @@ function collectAttachedImages(allPostData) {
// filter to certain image file types
.filter((attachment) => {
const url = attachment.childValue('attachment_url');
return url && (/\.(gif|jpe?g|png|webp)$/i).test(url);
return url && (/\.(gif|jpe?g|png|webp)(\?|$)/i).test(url);
})
.map((attachment) => ({
id: attachment.childValue('post_id'),