Commit 069b24d7b8bdc1dcc7a8921390f0733123b41515
Merge pull request #31 from ssbc/about-sync-shortFeedId
introduce about.sync.shortFeedId for the id sliceMatt McKegg authored on 9/13/2017, 1:02:22 AM
GitHub committed on 9/13/2017, 1:02:22 AM
Parent: 50ccb6d724fb7b397e2736bf5f6642d920709c7a
Parent: 6b7110119df34ef12c2c68b320ccf88a74684fac
Files changed
about/obs.js | changed |
about/sync.js | added |
about/obs.js | ||
---|---|---|
@@ -7,8 +7,9 @@ | ||
7 | 7 | |
8 | 8 | exports.needs = nest({ |
9 | 9 | 'sbot.pull.stream': 'first', |
10 | 10 | 'blob.sync.url': 'first', |
11 | + 'about.sync.shortFeedId': 'first', | |
11 | 12 | 'keys.sync.id': 'first' |
12 | 13 | }) |
13 | 14 | |
14 | 15 | exports.gives = nest({ |
@@ -34,9 +35,9 @@ | ||
34 | 35 | |
35 | 36 | return nest({ |
36 | 37 | 'about.obs': { |
37 | 38 | // quick helpers, probably should deprecate! |
38 | - name: (id) => socialValue(id, 'name', id.slice(1, 10)), | |
39 | + name: (id) => socialValue(id, 'name', api.about.sync.shortFeedId(id)), | |
39 | 40 | description: (id) => socialValue(id, 'description'), |
40 | 41 | image: (id) => socialValue(id, 'image'), |
41 | 42 | names: (id) => groupedValues(id, 'name'), |
42 | 43 | images: (id) => groupedValues(id, 'image'), |
Built with git-ssb-web