mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Correctly resize lazy loaded images in Oneboxes
This commit is contained in:
parent
520a83aa62
commit
2d3113e4da
@ -58,7 +58,7 @@ function show(image) {
|
||||
let inOnebox = false;
|
||||
let inQuote = false;
|
||||
for (let element = image; element; element = element.parentElement) {
|
||||
if (element.tagName === "ARTICLE") {
|
||||
if (element.tagName === "ARTICLE" && element.dataset.postId) {
|
||||
break;
|
||||
}
|
||||
if (element.classList.contains("onebox")) {
|
||||
|
Loading…
Reference in New Issue
Block a user