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

@ -40,6 +40,8 @@ if (typeof item !== "undefined") {
this.shareMessageTransformed = message
.replaceAll("{artist}", this.item.artists[0].name)
.replaceAll("{format}", this.item.formats[0].name)
.replaceAll("{genres}", this.item.genres.join())
.replaceAll("{styles}", this.item.styles.join())
.replaceAll("{year}", this.item.year)
.replaceAll("{video}", video)
.replaceAll("{album}", this.item.title);