Merge commit 'c1b5c8d'

For About data, use most popular (d87029da1c)
instead of self-picked (dffd43f062)
This commit is contained in:
cel
2017-05-14 15:57:27 -10:00
3 changed files with 33 additions and 6 deletions
+2
View File
@@ -14,6 +14,7 @@ module.exports = function (sbot, id, cb) {
pull(
sbot.links({
rel: 'about',
source: id,
dest: id,
values: true,
}),
@@ -24,6 +25,7 @@ module.exports = function (sbot, id, cb) {
var feedAbout = aboutByFeed[author] || (aboutByFeed[author] = {})
if (c.name) feedAbout.name = c.name.replace(/^@?/, '@')
if (c.image) feedAbout.image = linkDest(c.image)
if (c.description) feedAbout.description = c.description
}, function (err) {
if (err) return cb(err)
// Use whatever properties have the most counts.