Fix forum link.

This commit is contained in:
Aaron Suen 2020-07-05 21:03:31 -04:00
parent 5c0c2ab842
commit 0c2cad6964

View File

@ -52,6 +52,12 @@ module.exports = async () => {
.startsWith('http'))
meta.repo = config.fromgit;
const forumid = (meta.forums || '').match(/[&\?]t=(\d+)/);
if(forumid) meta.forums = forumid[1];
if(config.dryrun)
console.log(util.inspect({fields, meta}));
Object.assign(fields, meta);
if(config.dryrun) {