Include bullet in length calculation

This commit is contained in:
Pieter Vander Vennet 2023-01-27 14:04:26 +01:00
parent 750c76c80e
commit 5df7246db6

View file

@ -289,7 +289,7 @@ export class Postbuilder {
continue
}
const overview = await this.createOverviewForContributor(uid, changesetsMade)
if (overview.length + toSend.join("\n").length > 500) {
if (("- " + overview).length + toSend.join("\n").length > 500) {
break
}
toSend.push("- " + overview)