Storing social links in profile file, changed format to YAML.

This commit is contained in:
2026-09-29 17:12:16 +02:00
parent 1496a48199
commit e23d8becd4
5 changed files with 125 additions and 24 deletions
+4 -1
View File
@@ -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,
},
});
}