git ssb

16+

Dominic / patchbay



Commit 85e7dfc62d7132231fe48fc18a0202c70b3e9d7a

quick fix to protect against new about messages

mix irving committed on 4/30/2017, 11:38:16 AM
Parent: 981bec0fa38746dc547305145563bddee81a5d41

Files changed

app/html/page/notifications.jschanged
app/html/page/profile.jschanged
app/html/page/public.jschanged
message/html/render/about.jschanged
app/html/page/notifications.jsView
@@ -30,9 +30,9 @@
3030
3131 return nest({
3232 'app.html': {
3333 page: notificationsPage,
34- menuItem: menuItem
34 + menuItem
3535 }
3636 })
3737
3838 function menuItem () {
app/html/page/profile.jsView
@@ -8,18 +8,18 @@
88 exports.gives = nest({
99 'app.html': {
1010 page: true,
1111 menuItem: true
12- },
13- 'app.sync.goTo': 'first',
12 + }
1413 })
1514
1615 exports.needs = nest({
1716 'about': {
1817 'html.edit': 'first',
1918 'obs.name': 'first'
2019 },
2120 'app.html.scroller': 'first',
21 + 'app.sync.goTo': 'first',
2222 'contact.html.relationships': 'first',
2323 'keys.sync.id': 'first',
2424 'message.html.render': 'first',
2525 'sbot.pull.userFeed': 'first'
app/html/page/public.jsView
@@ -7,17 +7,17 @@
77 exports.gives = nest({
88 'app.html': {
99 page: true,
1010 menuItem: true
11- },
12- 'app.sync.goTo': 'first'
11 + }
1312 })
1413
1514 exports.needs = nest({
1615 'app.html': {
1716 filter: 'first',
1817 scroller: 'first'
1918 },
19 + 'app.sync.goTo': 'first',
2020 'feed.pull.public': 'first',
2121 'message.html': {
2222 compose: 'first',
2323 render: 'first'
@@ -29,9 +29,9 @@
2929
3030 return nest({
3131 'app.html': {
3232 page: publicPage,
33- menuItem: menuItem
33 + menuItem
3434 }
3535 })
3636
3737 function menuItem () {
message/html/render/about.jsView
@@ -29,11 +29,13 @@
2929 }
3030
3131 function renderContent (msg) {
3232 const { author, content } = msg.value
33- var { about, name, description, image } = content
33 + var { about, link, name, description, image } = content
3434
35 + // TODO : build better normalizers
3536 if (image && ref.isBlob(image.link)) image = image.link
37 + about = about || link
3638
3739 if (!ref.isFeed(about)) {
3840 return [
3941 'Describes ',

Built with git-ssb-web