Commit f4ea9d6b17feb7b1f62564befcdbbd6509ac2e26
Fix error
Fix %cWa7cA0dmsGILKjUZjUlz7npQYnCpGx7zNITounX+HE=.sha256cel committed on 2/12/2017, 3:25:12 AM
Parent: 07781abd21a6a8dc337e5190ae6cd64b0d90baf1
Files changed
lib/users.js | changed |
lib/users.js | ||
---|---|---|
@@ -121,13 +121,13 @@ | ||
121 | 121 … | paramap(function (link, cb) { |
122 | 122 … | if (!link.dest) return cb() |
123 | 123 … | self.web.getMsg(link.dest, function (err, destMsg) { |
124 | 124 … | if (err) return cb(err) |
125 | - if (destMsg.content.type != 'git-repo') return cb() | |
125 … | + if (destMsg.value.content.type != 'git-repo') return cb() | |
126 | 126 … | var vote = link.value.content && link.value.content.vote |
127 | 127 … | if (!(vote && vote.value > 0)) return cb() |
128 | 128 … | var repoId = link.dest |
129 | - var repoAuthor = destMsg.author | |
129 … | + var repoAuthor = destMsg.value.author | |
130 | 130 … | var done = multicb({ pluck: 1, spread: true }) |
131 | 131 … | self.web.getRepoName(repoAuthor, repoId, done()) |
132 | 132 … | self.web.about.getName(repoAuthor, done()) |
133 | 133 … | done(function (err, repoName, authorName) { |
Built with git-ssb-web