git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 971db96b011c54c34ce17deebe0068e374754022

update for patchcore rename "profile" to "contact"

Matt McKegg committed on 2/16/2017, 5:36:50 AM
Parent: a55c6ee357ae26944dcd50814406be4d91d90804

Files changed

modules/page/html/render/profile.jschanged
modules/page/html/render/public.jschanged
modules/page/html/render/profile.jsView
@@ -15,9 +15,9 @@
1515 'feed.html.rollup': 'first',
1616 'sbot.pull.userFeed': 'first',
1717 'sbot.async.publish': 'first',
1818 'keys.sync.id': 'first',
19- 'profile.obs': {
19+ 'contact.obs': {
2020 followers: 'first',
2121 following: 'first'
2222 }
2323 })
@@ -28,11 +28,11 @@
2828 if (!ref.isFeed(id)) return
2929
3030 var name = api.about.obs.name(id)
3131 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)
3535 var doneWaiting = Value(false)
3636 setTimeout(() => doneWaiting.set(true), 1e3)
3737 var friendsLoaded = computed([rawFollowers, rawFollowing, doneWaiting], (...x) => x.every(Boolean))
3838
modules/page/html/render/public.jsView
@@ -25,12 +25,10 @@
2525 'about.html.image': 'first',
2626 'about.obs.name': 'first',
2727
2828 'feed.html.rollup': 'first',
29- 'profile.obs': {
30- following: 'first',
31- recentlyUpdated: 'first'
32- },
29+ 'profile.obs.recentlyUpdated': 'first',
30+ 'contact.obs.following': 'first',
3331 'channel.obs': {
3432 subscribed: 'first',
3533 recent: 'first'
3634 },
@@ -43,9 +41,9 @@
4341 function page (path) {
4442 if (path !== '/public') return // "/" is a sigil for "page"
4543
4644 var id = api.keys.sync.id()
47- var following = api.profile.obs.following(id)
45+ var following = api.contact.obs.following(id)
4846 var subscribedChannels = api.channel.obs.subscribed(id)
4947 var loading = computed(subscribedChannels.sync, x => !x)
5048 var channels = computed(api.channel.obs.recent(), items => items.slice(0, 8), {comparer: arrayEq})
5149 var connectedPeers = api.sbot.obs.connectedPeers()

Built with git-ssb-web