Changed album close behavior so album can be closed when visiting URL directly.
This commit is contained in:
@@ -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 || []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user