This commit is contained in:
Flummi
2021-12-26 17:26:30 +01:00
parent ef54c7ccce
commit 52bfed6ed9
5 changed files with 131 additions and 8 deletions

View File

@ -101,7 +101,10 @@ export default (router, tpl) => {
dest: `${cfg.websrv.paths.images}/${actitem.dest}`,
mime: actitem.mime,
size: lib.formatSize(actitem.size),
timestamp: lib.timeAgo(new Date(actitem.stamp * 1e3).toISOString()),
timestamp: {
timeago: lib.timeAgo(new Date(actitem.stamp * 1e3).toISOString()),
timefull: new Date(actitem.stamp * 1e3).toISOString()
},
tags: tags
},
title: `${actitem.id} - f0ck.me`,
@ -116,6 +119,7 @@ export default (router, tpl) => {
uff: true
},
link: link,
phrase: cfg.websrv.phrases[~~(Math.random() * cfg.websrv.phrases.length)],
tmp: output
};
}