Commit 05bc69d3a28ccba462fa7532de0438207d41ccdd
do not show avatar for ambigious names
Dominic Tarr committed on 2/22/2019, 11:56:28 PMParent: d56f186e1728cbc5cc969e8ac104de5d29e0c373
Files changed
apis/mentions.js | changed |
apis/mentions.js | ||
---|---|---|
@@ -19,11 +19,11 @@ | ||
19 | 19 | function toPath () { |
20 | 20 | return '['+[].join.call(arguments, '][')+']' |
21 | 21 | } |
22 | 22 | |
23 | - | |
24 | 23 | cb(null, [ |
25 | - mentions.map(function (opts) { return apply('avatar', opts) }), | |
24 | + mentions.filter(function (e) { return e.link }) | |
25 | + .map(function (opts) { return apply('avatar', opts) }), | |
26 | 26 | u.createHiddenInputs({mentions: mentions}, 'content'), |
27 | 27 | ambigious.map(function (e, i) { |
28 | 28 | return [ |
29 | 29 | 'div.AmbigiousMentions', |
@@ -47,4 +47,10 @@ | ||
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | + | |
52 | + | |
53 | + | |
54 | + | |
55 | + | |
56 | + |
Built with git-ssb-web