* typo in og tags

This commit is contained in:
shockrah
2021-10-17 21:22:13 -07:00
parent 8040481038
commit 501916cb57
2 changed files with 5 additions and 2 deletions

View File

@@ -16,7 +16,10 @@ class VideoMeta {
let link = document.createElement('a')
if(this.name) {
link.href = `/clip/${this.category}/${this.name}`
link.text = this.name.replace('.', ' ').replace('-', ' ')
link.text = this.name
for(const chars of ['.', '-', '_', 'mp4', 'mkv', 'webm']) {
link.text = link.text.replace(chars, ' ')
}
} else {
link.href = '#'
link.text = this.name + 'ft. No thumbnail'