fix guestbook rss 500

This commit is contained in:
b1ek 2023-03-18 17:02:58 +10:00
parent da94c1e6f6
commit 937828dd91
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ async function rss(req, res) {
for (const record of data) {
console.log(record);
if (record.email == null || record.email == undefined) {
record.email = 'no@email.com';
}
if (record.hidemail)
record.email = ('?'.repeat(record.email.split('@')[0].length)) + '@?.?';