edit: donations + modif gestion post non-formaté

This commit is contained in:
2026-04-26 16:47:34 +02:00
parent 11de8e4265
commit 7273e998ae
4 changed files with 16 additions and 6 deletions
+3 -1
View File
@@ -10,10 +10,12 @@ function idAndDate(str){
function titleAndContent(str){
let data = str.split(" :");
let title = "NO_TITLE";
let contentData = [""];
if (data.length > 1){
title = data[0];
} else {
contentData = data[0].split('<br>').filter(e => e);
}
let contentData = [""];
if (data[1]){
contentData = data[1].split('<br>').filter(e => e);
}