Commit 971db96b011c54c34ce17deebe0068e374754022
update for patchcore rename "profile" to "contact"
Matt McKegg committed on 2/16/2017, 5:36:50 AMParent: a55c6ee357ae26944dcd50814406be4d91d90804
Files changed
modules/page/html/render/profile.js | changed |
modules/page/html/render/public.js | changed |
modules/page/html/render/profile.js | ||
---|---|---|
@@ -15,9 +15,9 @@ | ||
15 | 15 … | 'feed.html.rollup': 'first', |
16 | 16 … | 'sbot.pull.userFeed': 'first', |
17 | 17 … | 'sbot.async.publish': 'first', |
18 | 18 … | 'keys.sync.id': 'first', |
19 | - 'profile.obs': { | |
19 … | + 'contact.obs': { | |
20 | 20 … | followers: 'first', |
21 | 21 … | following: 'first' |
22 | 22 … | } |
23 | 23 … | }) |
@@ -28,11 +28,11 @@ | ||
28 | 28 … | if (!ref.isFeed(id)) return |
29 | 29 … | |
30 | 30 … | var name = api.about.obs.name(id) |
31 | 31 … | var yourId = api.keys.sync.id() |
32 | - var yourFollows = api.profile.obs.following(yourId) | |
33 | - var rawFollowers = api.profile.obs.followers(id) | |
34 | - var rawFollowing = api.profile.obs.following(id) | |
32 … | + var yourFollows = api.contact.obs.following(yourId) | |
33 … | + var rawFollowers = api.contact.obs.followers(id) | |
34 … | + var rawFollowing = api.contact.obs.following(id) | |
35 | 35 … | var doneWaiting = Value(false) |
36 | 36 … | setTimeout(() => doneWaiting.set(true), 1e3) |
37 | 37 … | var friendsLoaded = computed([rawFollowers, rawFollowing, doneWaiting], (...x) => x.every(Boolean)) |
38 | 38 … |
modules/page/html/render/public.js | |||
---|---|---|---|
@@ -25,12 +25,10 @@ | |||
25 | 25 … | 'about.html.image': 'first', | |
26 | 26 … | 'about.obs.name': 'first', | |
27 | 27 … | ||
28 | 28 … | 'feed.html.rollup': 'first', | |
29 | - 'profile.obs': { | ||
30 | - following: 'first', | ||
31 | - recentlyUpdated: 'first' | ||
32 | - }, | ||
29 … | + 'profile.obs.recentlyUpdated': 'first', | ||
30 … | + 'contact.obs.following': 'first', | ||
33 | 31 … | 'channel.obs': { | |
34 | 32 … | subscribed: 'first', | |
35 | 33 … | recent: 'first' | |
36 | 34 … | }, | |
@@ -43,9 +41,9 @@ | |||
43 | 41 … | function page (path) { | |
44 | 42 … | if (path !== '/public') return // "/" is a sigil for "page" | |
45 | 43 … | ||
46 | 44 … | var id = api.keys.sync.id() | |
47 | - var following = api.profile.obs.following(id) | ||
45 … | + var following = api.contact.obs.following(id) | ||
48 | 46 … | var subscribedChannels = api.channel.obs.subscribed(id) | |
49 | 47 … | var loading = computed(subscribedChannels.sync, x => !x) | |
50 | 48 … | var channels = computed(api.channel.obs.recent(), items => items.slice(0, 8), {comparer: arrayEq}) | |
51 | 49 … | var connectedPeers = api.sbot.obs.connectedPeers() |
Built with git-ssb-web