mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
add nsfw tags
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user