Changed album close behavior so album can be closed when visiting URL directly.

This commit is contained in:
DebaucheryLibrarian
2021-03-07 16:54:20 +01:00
parent a275d0c855
commit de460f53b1
4 changed files with 10 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ const log = require('why-is-node-running');
const argv = require('./argv');
const initServer = require('./web/server');
const http = require('./utils/http');
const knex = require('./knex');
const fetchUpdates = require('./updates');
@@ -79,6 +80,12 @@ async function init() {
await flushOrphanedMedia();
}
if (argv.request) {
const res = await http.get(argv.request);
console.log(res.status, res.body);
}
const actorsFromFile = argv.actorsFile && await getFileEntries(argv.actorsFile);
const actorNames = (argv.actors || []).concat(actorsFromFile || []);