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:
parent
fec545ee86
commit
f81cee055f
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue