Allow {genres} and {styles} for sharing album on fediverse

This commit is contained in:
Damien Broqua 2024-03-16 15:42:19 +01:00
parent 68414e3e71
commit 5b2758afca
5 changed files with 10 additions and 2 deletions

View file

@ -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;

View file

@ -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)}