From 34fab32d544dc98439fc853ed787970c3cee172f Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 25 Jul 2023 22:01:12 +0200 Subject: fix: Conditionally display comments container --- src/backend/tubo/api/streams.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend') 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)) -- cgit v1.2.3