fix guestbook rss 500
This commit is contained in:
parent
da94c1e6f6
commit
937828dd91
|
@ -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)) + '@?.?';
|
||||
|
||||
|
|
Loading…
Reference in New Issue