mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
add flairs to preferences
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module.exports = function() {
|
||||
this.processJsonUser = function(json, parsed, after, before) {
|
||||
this.processJsonUser = function(json, parsed, after, before, user_preferences) {
|
||||
return new Promise(resolve => {
|
||||
(async () => {
|
||||
if(!parsed) {
|
||||
@@ -64,7 +64,7 @@ module.exports = function() {
|
||||
num_comments: post.num_comments,
|
||||
over_18: post.over_18,
|
||||
permalink: post.permalink,
|
||||
user_flair: await formatUserFlair(post)
|
||||
user_flair: (user_preferences.flairs != 'false' ? await formatUserFlair(post) : '')
|
||||
}
|
||||
}
|
||||
if(type === 't1') {
|
||||
@@ -83,7 +83,7 @@ module.exports = function() {
|
||||
permalink: post.permalink,
|
||||
link_author: post.link_author,
|
||||
link_title: post.link_title,
|
||||
user_flair: await formatUserFlair(post)
|
||||
user_flair: (user_preferences.flairs != 'false' ? await formatUserFlair(post) : '')
|
||||
}
|
||||
}
|
||||
posts.push(obj)
|
||||
|
||||
Reference in New Issue
Block a user