Let people name themselves and support description in about
This commit is contained in:
@@ -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,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user