[Thumbnails] Fix an issue caused by the avatar having an invalid value (#748)

This commit is contained in:
Cinder 2024-09-03 03:18:29 -07:00 committed by GitHub
parent 28ebc378e0
commit 84dcafc8c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,14 +15,14 @@ Thumbnails.initialize = function () {
const postID = $post.data("id");
if (!postID) {
clearPlaceholder($post);
return;
continue;
}
// Data exists for this post
const postData = postsData[postID];
if (!postData) {
clearPlaceholder($post);
return;
continue;
}
// Add data to cache right away, instead of