Fix expiration text

This commit is contained in:
Booteille 2024-11-25 18:42:26 +01:00
parent b895c8518b
commit 282eb7a209
No known key found for this signature in database
GPG Key ID: 0AB6C6CA01272646
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function populateBody() {
links.forEach(function(name, index, array) { links.forEach(function(name, index, array) {
var item = findItem(name); var item = findItem(name);
if (item !== null && item !== undefined) { if (item !== null && item !== undefined) {
var limit = (item.delay === 0) ? null : formatDate(item.delay * 86400 + item.created_at); var limit = (item.delay == 0) ? null : formatDate(item.delay * 86400 + item.created_at);
text += `- ${item.name}<%= l(':') %> ${item.url}`; text += `- ${item.name}<%= l(':') %> ${item.url}`;
if (limit !== null) { if (limit !== null) {
text += `\n (<%= l('deadline: ') %>${limit})`; text += `\n (<%= l('deadline: ') %>${limit})`;