From 5f6d7649657443b88f1fe53fa4217805245500b4 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Tue, 9 Apr 2024 18:45:44 +0000 Subject: [PATCH] add comments back --- html/poketube.ejs | 114 ++++++++++++++++++++++++++++++---------------- 1 file changed, 76 insertions(+), 38 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index b55f5ee2..1ef47051 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1295,14 +1295,14 @@ WIP! <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> <% if (!inv_vid.title.endsWith('IGNORE_THIS_PLEASE)')) { %> - <% if (inv.comments) { %> + <% if (inv.contents) { %>
- <%- inv.commentCount.toLocaleString() %> + <%- inv.header?.comments_count %>
@@ -1552,25 +1552,16 @@ WIP! - <% if(inv.error) { %> -

-<%- inv.error %>
Backtrace:
- -<%- inv.errorBacktrace %> - -Report this issue -

- <% } %> - + - <% if (inv.comments) { %> + <% if (inv.contents) { %>
- YouTube Comments - <%- inv.commentCount.toLocaleString() %> Comments + YouTube Comments - <%- inv.header?.comments_count %> Comments

@@ -1578,8 +1569,55 @@ WIP!

- <% inv.comments.forEach(x =>{ %>
<% if (!x.authorIsChannelOwner) { %>

<%- x.author%><% if (x.verified) { %><% } %>

<%- x.publishedText %>

<% } %><% if (x.authorIsChannelOwner) { %>

<%- x.author%><% if (x.verified) { %><% } %>

<%- x.publishedText %>

<% } %>

<%- x.contentHtml %>

<% if (x.likeCount === 0) { %> | <% } else { %> <%= convert(x.likeCount) %> | <% } %><% if(x.creatorHeart) { %> <% } %>

<% }) %> -
+<% for (const thread of inv.contents) { %> + <% const x = thread.comment; %> +
+
+
+
+
+
+
+ + <% if (!x.author_is_channel_owner) { %> +

+ + <%- x.author.name %> + <% if (x.is_verified) { %> + <% } %> +

+ <%- x.published_time %> +

+ +

+ <% } %> + <% if (x.author_is_channel_owner) { %> +

+ + <%- x.author.name %> + <% if (x.verified) { %> + <% } %> +

+ <%- x.published_time %> +

+ + <% } %> +
+

+ <%- x.content %>

+ <% if (x.like_count === 0) { %> | + <% } else { %> + <%= x.like_count %> | + <% } %> + <% if(x.creatorHeart) { %> + <% } %> +

+
+
+
+
+
<% } %> +
Go To Top
@@ -1590,13 +1628,13 @@ WIP! <% } %> - <% if(!inv.comments) { %> + <% if(!inv.contents) { %>
<% } %> - <% if(inv.comments) { %> + <% if(inv.contents) { %> <% } %> @@ -2179,7 +2217,7 @@ a { - <% if (Array.isArray( !inv.comments)) { %> + <% if (Array.isArray( !inv.contents)) { %>