Storing social links in profile file, changed format to YAML.
This commit is contained in:
+4
-1
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
function curateUser(user) {
|
||||
function curateUser(user, socialLinks = []) {
|
||||
const curatedUser = {
|
||||
id: user.id,
|
||||
name: user.name,
|
||||
@@ -21,6 +21,9 @@ function curateUser(user) {
|
||||
banner: user.subreddit.banner_img,
|
||||
description: user.subreddit.public_description,
|
||||
over18: user.subreddit.over_18,
|
||||
// the "Social Links" widget on their profile (Twitter/Instagram/OnlyFans/etc.) -
|
||||
// see reddit/client.js's getSocialLinks()
|
||||
links: socialLinks,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user