the most pathetic fix to exist yet
This commit is contained in:
@@ -496,8 +496,8 @@
|
|||||||
|| rawContent.split('\n').length > 2
|
|| rawContent.split('\n').length > 2
|
||||||
|| (c.files && c.files.length > 0);
|
|| (c.files && c.files.length > 0);
|
||||||
}
|
}
|
||||||
// Always force isLong if there are inline media tags that expand vertically
|
// Always force isLong if there are inline media tags that expand vertically or files are attached
|
||||||
if (!isLong && (/\[(video|audio|youtube|img)\]|!\[|https?:\/\//i.test(rawContent) || displayContent.includes('<video') || displayContent.includes('<img'))) {
|
if (!isLong && ((c.files && c.files.length > 0) || /\[(video|audio|youtube|img)\]|!\[|https?:\/\//i.test(rawContent) || displayContent.includes('<video') || displayContent.includes('<img'))) {
|
||||||
isLong = true;
|
isLong = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user