add [score hidden] feature for comments

This commit is contained in:
teddit
2020-11-22 19:57:17 +01:00
parent f27f27041e
commit ad125a592b
3 changed files with 22 additions and 7 deletions

View File

@@ -138,6 +138,7 @@ module.exports = function(fetch) {
permalink: comment.permalink,
stickied: comment.stickied,
distinguished: comment.distinguished,
score_hidden: comment.score_hidden,
replies: []
}
} else {
@@ -212,6 +213,7 @@ module.exports = function(fetch) {
permalink: reply.permalink,
stickied: reply.stickied,
distinguished: reply.distinguished,
score_hidden: reply.score_hidden,
replies: []
}
} else {
@@ -243,6 +245,8 @@ module.exports = function(fetch) {
ups: comment.ups,
id: comment.id,
permalink: comment.permalink,
score_hidden: comment.score_hidden,
distinguished: comment.distinguished,
replies: []
}
} else {