add nsfw tags

This commit is contained in:
teddit
2020-12-23 15:52:51 +01:00
parent b014c950ef
commit 836438dfeb
7 changed files with 29 additions and 6 deletions
+2
View File
@@ -21,6 +21,7 @@ module.exports = function(fetch) {
link_flair_text: post.link_flair_text,
name: post_id,
num_comments: post.num_comments,
over_18: post.over_18,
permalink: teddifyUrl(post.permalink),
title: post.title,
url: teddifyUrl(post.url),
@@ -81,6 +82,7 @@ module.exports = function(fetch) {
title: post.crosspost.title,
name: post.crosspost.name,
num_comments: post.crosspost.num_comments,
over_18: post.crosspost.over_18,
id: post.crosspost.id,
permalink: teddifyUrl(post.crosspost.permalink),
ups: post.crosspost.ups,
+1
View File
@@ -64,6 +64,7 @@ module.exports = function() {
locked: data.locked,
media: data.media,
num_comments: data.num_comments,
over_18: data.over_18,
permalink: data.permalink,
score: data.score,
subreddit: data.subreddit,
+2
View File
@@ -62,6 +62,7 @@ module.exports = function() {
edited: post.edited,
selftext_html: unescape(post.selftext_html),
num_comments: post.num_comments,
over_18: post.over_18,
permalink: post.permalink,
user_flair: await formatUserFlair(post)
}
@@ -78,6 +79,7 @@ module.exports = function() {
edited: post.edited,
body_html: unescape(post.body_html),
num_comments: post.num_comments,
over_18: post.over_18,
permalink: post.permalink,
link_author: post.link_author,
link_title: post.link_title,