Expanded new media module. Added network to channel site to fix actor glitch.

This commit is contained in:
2020-03-30 03:01:08 +02:00
parent a5d859471d
commit 4eaacf5697
6 changed files with 263 additions and 40 deletions

View File

@@ -72,10 +72,13 @@ queue.define('http', async ({
const json = Buffer.isBuffer(res.body) ? null : res.body;
return {
...res,
res,
html,
json,
pipe: res.pipe,
ok: res.statusCode >= 200 && res.statusCode <= 299,
code: res.statusCode,
status: res.statusCode,
};
}, {
concurrency: 20,

View File

@@ -5,7 +5,7 @@ function slugify(string, delimiter = '-', {
limit = 1000,
} = {}) {
if (!string) {
return '';
return string;
}
const slugComponents = string.trim().toLowerCase().match(/\w+/g);