forked from dbroqua/MusicTopus
Allow {genres} and {styles} for sharing album on fediverse
This commit is contained in:
parent
68414e3e71
commit
5b2758afca
5 changed files with 10 additions and 2 deletions
|
@ -9,7 +9,7 @@ import MongoStore from "connect-mongo";
|
|||
|
||||
import passportConfig from "./libs/passport";
|
||||
|
||||
import config, { env, mongoDbUri, secret } from "./config";
|
||||
import config, { env, mongoDbUri, port, secret } from "./config";
|
||||
|
||||
import { isXhr } from "./helpers";
|
||||
|
||||
|
@ -150,6 +150,6 @@ app.use((error, req, res, next) => {
|
|||
}
|
||||
});
|
||||
|
||||
console.log("Server ready!");
|
||||
console.log(`Server listening on port ${port}!`);
|
||||
|
||||
export default app;
|
||||
|
|
|
@ -83,6 +83,8 @@ class Albums extends Pages {
|
|||
)
|
||||
.replaceAll("{artist}", data.artists[0].name)
|
||||
.replaceAll("{format}", data.formats[0].name)
|
||||
.replaceAll("{genres}", data.genres.join())
|
||||
.replaceAll("{styles}", data.styles.join())
|
||||
.replaceAll("{year}", data.year)
|
||||
.replaceAll("{video}", video)
|
||||
.replaceAll("{album}", data.title)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue