views.jsView |
---|
105 | 105 | }) |
106 | 106 | ) |
107 | 107 | } |
108 | 108 | |
109 | | -var mentionsStream = function () { |
| 109 | +var mentionsStream = function (src) { |
110 | 110 | var content = h('div.content') |
111 | 111 | |
112 | 112 | var screen = document.getElementById('screen') |
113 | 113 | |
128 | 128 | limit: 10, |
129 | 129 | reverse: true, |
130 | 130 | index: 'DTA', |
131 | 131 | live: false, |
132 | | - query: [{$filter: {dest: id}}] |
| 132 | + query: [{$filter: {dest: src}}] |
133 | 133 | }), |
134 | 134 | stream.bottom(content) |
135 | 135 | ) |
136 | 136 | |
139 | 139 | limit: 10, |
140 | 140 | old: false, |
141 | 141 | index: 'DTA', |
142 | 142 | live: true, |
143 | | - query: [{$filter: {dest: id}}] |
| 143 | + query: [{$filter: {dest: src}}] |
144 | 144 | }), |
145 | 145 | stream.top(content) |
146 | 146 | ) |
147 | 147 | } |
328 | 328 | profile.firstChild.appendChild(tools.getBlocks(src)) |
329 | 329 | profile.firstChild.appendChild(tools.getBlocked(src)) |
330 | 330 | } |
331 | 331 | })) |
| 332 | + buttons.appendChild(h('a', {href: '#wall/' + src}, h('button.btn', avatar.name(src), "'s wall"))) |
332 | 333 | |
333 | | - |
334 | 334 | } |
335 | 335 | |
336 | 336 | var privateMsg = function (src) { |
337 | 337 | var content = h('div.content') |
568 | 568 | } |
569 | 569 | |
570 | 570 | module.exports = function () { |
571 | 571 | var src = hash() |
572 | | - console.log(src) |
573 | 572 | |
574 | 573 | if (src.substring(52, 59) == '?unbox=') { |
575 | 574 | privateMsg(src) |
576 | 575 | } else if (ref.isFeed(src)) { |
577 | 576 | userStream(src) |
578 | 577 | } else if (ref.isMsg(src)) { |
579 | 578 | msgThread(src) |
580 | | - } else if (src == 'mentions') { |
581 | | - mentionsStream() |
| 579 | + } else if (ref.isFeed(src.substring(5))) { |
| 580 | + mentionsStream(src.substring(5)) |
582 | 581 | } else if (src == 'queue') { |
583 | 582 | queueStream() |
584 | 583 | } else if (src == 'about') { |
585 | 584 | about() |