Let people name themselves and support description in about

This commit is contained in:
Anders Rune Jensen
2017-05-12 22:06:54 +02:00
parent f49493c61f
commit dffd43f062
+2
View File
@@ -10,6 +10,7 @@ function reduceAbout(about, msg) {
if (!c) return about if (!c) return about
if (c.name) about.name = c.name.replace(/^@?/, '@') if (c.name) about.name = c.name.replace(/^@?/, '@')
if (c.image) about.image = linkDest(c.image) if (c.image) about.image = linkDest(c.image)
if (c.description) about.description = c.description
return about return about
} }
@@ -18,6 +19,7 @@ module.exports = function (sbot, id, cb) {
pull( pull(
sbot.links({ sbot.links({
rel: 'about', rel: 'about',
source: id,
dest: id, dest: id,
values: true, values: true,
}), }),