git ssb

10+

Matt McKegg / patchwork



Commit 4eb3de7f566d64848c74e2a4d76a4fe8c3280400

Merge branch 'patch-gatherings'

mix irving committed on 5/25/2017, 9:26:59 AM
Parent: 0ae08666f0e63f6c885066bd2663eab5e5a49b02
Parent: 6e019f47d9070335cd52b7e1027195b9a4077109

Files changed

main-window.jschanged
modules/app/html/search.jschanged
modules/page/html/render/message.jschanged
package.jsonchanged
plugs/blob/sync/url.jschanged
main-window.jsView
@@ -15,8 +15,9 @@
1515 module.exports = function (config) {
1616 var sockets = combine(
1717 overrideConfig(config),
1818 addCommand('app.navigate', setView),
19+ require('patchwork-gatherings'),
1920 require('./modules'),
2021 require('./plugs'),
2122 require('patchcore'),
2223 require('./overrides')
modules/app/html/search.jsView
@@ -8,9 +8,9 @@
88 })
99
1010 exports.gives = nest('app.html.search')
1111
12-var pages = ['/public', '/private', '/mentions', '/all']
12+var pages = ['/public', '/private', '/mentions', '/all', '/gatherings']
1313
1414 exports.create = function (api) {
1515 return nest('app.html.search', function (setView) {
1616 var getProfileSuggestions = api.profile.async.suggest()
modules/page/html/render/message.jsView
@@ -59,9 +59,9 @@
5959 h('div.messages', [
6060 when(thread.branchId, h('a.full', {href: thread.rootId}, ['View full thread'])),
6161 map(thread.messages, (msg) => {
6262 return computed([msg, thread.previousKey(msg)], (msg, previousId) => {
63- return api.message.html.render(msg, {previousId, backlinks: true})
63+ return api.message.html.render(msg, {pageId: id, previousId, backlinks: true})
6464 })
6565 })
6666 ]),
6767 compose
package.jsonView
@@ -37,8 +37,9 @@
3737 "non-private-ip": "^1.4.1",
3838 "on-change-network": "0.0.2",
3939 "on-wakeup": "^1.0.1",
4040 "patchcore": "~0.4.12",
41+ "patchwork-gatherings": "^1.0.2",
4142 "pull-abortable": "^4.1.0",
4243 "pull-defer": "^0.2.2",
4344 "pull-file": "~1.0.0",
4445 "pull-identify-filetype": "^1.1.0",
plugs/blob/sync/url.jsView
@@ -9,9 +9,9 @@
99 exports.create = function (api) {
1010 return nest('blob.sync.url', function (link) {
1111 var config = api.config.sync.load()
1212 var prefix = config.blobsPrefix != null ? config.blobsPrefix : `http://localhost:${config.blobsPort}`
13- if (typeof link.link === 'string') {
13+ if (link && typeof link.link === 'string') {
1414 link = link.link
1515 }
1616 return `${prefix}/${encodeURIComponent(link)}`
1717 })

Built with git-ssb-web