constipation moment

This commit is contained in:
Pachira 2023-01-29 03:35:45 +00:00
parent e1122fb6b9
commit a4be74cae3

View file

@ -687,7 +687,7 @@ const MszVideoEmbedPlaceholder = function(metadata, options) {
});
if(metadata.description) {
const firstLine = metadata.description.split("\n")[0].trim();
let firstLine = metadata.description.split("\n")[0].trim();
if(firstLine.length > 300)
firstLine = firstLine.substring(0, 300).trim() + '...';