git ssb

30+

cel / git-ssb-web



Commit b0bc02aa8cd11a7db1f9b1758ed7762c117cad1e

Go back to using repo.feed instead of repo.creator

Charles Lehner committed on 9/30/2016, 9:08:28 PM
Parent: 1f71fa34081b352d3180ce55c0c321f38cd3dc6c

Files changed

lib/about.jschanged
lib/repos/index.jschanged
package.jsonchanged
lib/about.jsView
@@ -37,10 +37,10 @@
3737
3838 // Get About info (name and icon) for a feed.
3939 function getAboutFull(sbot, source, dest, cb) {
4040 var info = {}
41- var target = dest && dest.target || dest
42- var owner = dest && dest.owner || dest
41 + var target = dest.target || dest
42 + var owner = dest.owner || dest
4343
4444 pull(
4545 cat([
4646 // First get About info that we gave them.
lib/repos/index.jsView
@@ -157,10 +157,10 @@
157157 'onclick="this.select()"/>'
158158 var digsPath = [repo.id, 'digs']
159159
160160 var done = multicb({ pluck: 1, spread: true })
161- self.web.getRepoName(repo.creator, repo.id, done())
162- self.web.about.getName(repo.creator, done())
161 + self.web.getRepoName(repo.feed, repo.id, done())
162 + self.web.about.getName(repo.feed, done())
163163 self.web.getVotes(repo.id, done())
164164
165165 if (repo.upstream) {
166166 self.web.getRepoName(repo.upstream.feed, repo.upstream.id, done())
@@ -200,9 +200,9 @@
200200 req._t('Forks') + '"') +
201201 '</form>' +
202202 forms.name(req, !isPublic, repo.id, repoName, 'repo-name',
203203 null, req._t('repo.Rename'),
204- '<h2 class="bgslash">' + u.link([repo.creator], authorName) + ' / ' +
204 + '<h2 class="bgslash">' + u.link([repo.feed], authorName) + ' / ' +
205205 u.link([repo.id], repoName) + '</h2>') +
206206 '</div>' +
207207 (repo.upstream ? '<small class="bgslash">' + req._t('ForkedFrom', {
208208 repo: u.link([repo.upstream.feed], upstreamAuthorName) + '/' +
@@ -221,9 +221,9 @@
221221 })
222222 }
223223
224224 R.serveEmptyRepo = function (req, repo) {
225- if (repo.creator != this.web.myId)
225 + if (repo.feed != this.web.myId)
226226 return this.renderRepoPage(req, repo, 'code', null, null, pull.once(
227227 '<section>' +
228228 '<h3>' + req._t('EmptyRepo') + '</h3>' +
229229 '</section>'))
@@ -284,9 +284,9 @@
284284 pull.map(renderRepoUpdate.bind(self, req, repo))
285285 ),
286286 u.readOnce(function (cb) {
287287 var done = multicb({ pluck: 1, spread: true })
288- self.web.about.getName(repo.creator, done())
288 + self.web.about.getName(repo.feed, done())
289289 self.web.getMsg(repo.id, done())
290290 done(function (err, authorName, msg) {
291291 if (err) return cb(err)
292292 self.web.renderFeedItem(req, {
package.jsonView
@@ -19,9 +19,9 @@
1919 "pull-paramap": "^1.1.6",
2020 "pull-stream": "^3.1.0",
2121 "ssb-client": "^3.0.1",
2222 "ssb-config": "^1.1.0",
23- "ssb-git-repo": "^2.0.0-collab",
23 + "ssb-git-repo": "^2.0.0-collab1",
2424 "ssb-issues": "^0.2.0",
2525 "ssb-keys": "^5.0.0",
2626 "ssb-marked": "^0.6.0",
2727 "ssb-mentions": "^0.1.0",

Built with git-ssb-web