Give more weight to feed author's own About choices
This commit is contained in:
@@ -31,10 +31,13 @@ module.exports = function (sbot, id, cb) {
|
||||
// Usually we would want to handle renames for dead feeds and such,
|
||||
// but for ssb-viewer it is mostly public/archival content anyway,
|
||||
// so we'll let the popular name stand.
|
||||
// Except: prefer the feed's own choices slightly
|
||||
var propValueCounts = {/* prop: {value: count} */}
|
||||
var topValues = {/* prop: value */}
|
||||
var topValueCounts = {/* prop: count */}
|
||||
var about = {}
|
||||
// bias the feed's own choice by 1
|
||||
aboutByFeed._author = aboutByFeed[id] || {}
|
||||
for (var feed in aboutByFeed) {
|
||||
var feedAbout = aboutByFeed[feed]
|
||||
for (var prop in feedAbout) {
|
||||
|
||||
Reference in New Issue
Block a user