From 6614cc53936db90d30d0108959f05dcb353939f2 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Fri, 12 Apr 2024 15:21:58 +0000 Subject: [PATCH] add funny easter egg :3 --- src/libpoketube/libpoketube-dislikes.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/libpoketube-dislikes.js b/src/libpoketube/libpoketube-dislikes.js index a3b2dd91..ad435813 100644 --- a/src/libpoketube/libpoketube-dislikes.js +++ b/src/libpoketube/libpoketube-dislikes.js @@ -46,9 +46,10 @@ class PokeTubeDislikesAPIManager { const { fetch } = await import("undici"); - - const engagement = await fetch(apiUrl).then((res) => res.json()); - return engagement + const engagement = await fetch(apiUrl).then((res) => res.json()); + engagement.viewCount = this.videoId === "cc2-4ci4G84" ? 1400000000 : engagement.viewCount; + return engagement; + }