mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added protection against unknown image sizes
This commit is contained in:
@ -5,10 +5,9 @@
|
||||
if (post.contentType === 'image' || post.contentType === 'animation' || post.contentType === 'flash') {
|
||||
width = post.imageWidth;
|
||||
height = post.imageHeight;
|
||||
} else {
|
||||
width = 800;
|
||||
height = 450;
|
||||
}
|
||||
if (!width) { width = 800; }
|
||||
if (!height) { height = 450; }
|
||||
%>
|
||||
|
||||
<div class="post-content post-type-<%= post.contentType %>">
|
||||
|
Reference in New Issue
Block a user