aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-07-25 22:01:12 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-07-25 22:01:12 +0200
commit34fab32d544dc98439fc853ed787970c3cee172f (patch)
treecf00b7ca04a61d3103a48ddf80ef0d62bfd41a6d /src/backend
parent141da4b61792ff71d6ec12f85a94a4bd6368524f (diff)
fix: Conditionally display comments container
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tubo/api/streams.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tubo/api/streams.clj b/src/backend/tubo/api/streams.clj
index 274d5f2..6ce2086 100644
--- a/src/backend/tubo/api/streams.clj
+++ b/src/backend/tubo/api/streams.clj
@@ -25,7 +25,7 @@
:duration (.getDuration info)
:tags (.getTags info)
:category (.getCategory info)
- :view-count (.getViewCount info)
+ :view-count (when-not (= (.getViewCount info) -1) (.getViewCount info))
:like-count (when-not (= (.getLikeCount info) -1) (.getLikeCount info))
:dislike-count (when-not (= (.getDislikeCount info) -1) (.getDislikeCount info))
:subscriber-count (when-not (= (.getUploaderSubscriberCount info) -1) (.getUploaderSubscriberCount info))