Fix: parsing video info of videos with like count disabled (#1915)

* fix watch-video-info

* don't display likes as 0 when disabled
This commit is contained in:
ChunkyProgrammer 2022-01-03 18:00:33 -05:00 committed by GitHub
parent fec545ee86
commit f81cee055f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ export default Vue.extend({
}, },
parsedLikeCount: function () { parsedLikeCount: function () {
if (this.hideVideoLikesAndDislikes) { if (this.hideVideoLikesAndDislikes || this.likeCount === null) {
return null return null
} }
@ -209,7 +209,7 @@ export default Vue.extend({
}, },
parsedDislikeCount: function () { parsedDislikeCount: function () {
if (this.hideVideoLikesAndDislikes) { if (this.hideVideoLikesAndDislikes || this.dislikeCount === null) {
return null return null
} }