Fix of the ft-video-list display since release from streams

This commit is contained in:
Luca 2020-09-02 22:59:16 +02:00
parent addf524296
commit 4dcfc28f17
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ const actions = {
return payload.publishText
}
const strings = payload.publishText.split(' ')
// filters out the streamed x hours ago and removes the streamed in order to keep the rest of the code working
if (strings[0].toLowerCase() === 'streamed') {
strings.shift()
}
const singular = (strings[0] === '1')
let publicationString = payload.templateString.replace('$', strings[0])
switch (strings[1].substring(0, 2)) {