Switch to new post so the text gets added in the correct post.

This commit is contained in:
ccd0 2023-07-27 13:11:33 -07:00
parent b209f69515
commit 12e82412b5

View File

@ -366,7 +366,7 @@ QR =
for line in text.split("\n")
currentLength = line.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length + 1 # 1 for newline
if (currentLength + lastPostLength) > QR.max_comment
post = new QR.post()
post = new QR.post true
post.setComment(line)
lastPostLength = currentLength
else