Commit d03a610c77cee73a156ebe6e4fc1f7369d27fe9d
include likes of a missing message (for hint as who to follow)
Matt McKegg committed on 10/19/2017, 12:09:07 AMParent: d3414d5beb5d4fc5940f696773b65c3d8b4acb15
Files changed
modules/message/html/missing.js | changed |
modules/message/html/missing.js | ||
---|---|---|
@@ -6,8 +6,9 @@ | ||
6 | 6 | |
7 | 7 | exports.needs = nest({ |
8 | 8 | 'sbot.async.get': 'first', |
9 | 9 | 'profile.html.person': 'first', |
10 | + 'message.html.meta': 'first', | |
10 | 11 | 'intl.sync.i18n': 'first' |
11 | 12 | }) |
12 | 13 | |
13 | 14 | exports.gives = nest('message.html.missing') |
@@ -34,8 +35,11 @@ | ||
34 | 35 | h('div.main', [ |
35 | 36 | h('div.name', ['⚠️ ', h('strong', i18n('Missing message')), i18n(' via '), api.profile.html.person(hintMessage.value.author)]), |
36 | 37 | h('div.meta', [h('a', {href: id}, id)]) |
37 | 38 | ]) |
39 | + ]), | |
40 | + h('div.meta', [ | |
41 | + api.message.html.meta({key: id, value: {missing: true}}) | |
38 | 42 | ]) |
39 | 43 | ]), |
40 | 44 | h('section', [ |
41 | 45 | h('p', [i18n(`The author of this message could be outside of your follow range or they may be blocked.`)]) |
Built with git-ssb-web