git ssb

0+

mixmix / ssb-meme



Commit aee30ac664670584e08d88e7ea2a758c0ba850ff

fix index map!

mix irving committed on 5/28/2018, 12:32:02 PM
Parent: 06cdd7ffafd21473dff9aae307480a103ba52d53

Files changed

index.jschanged
index.jsView
@@ -3,9 +3,9 @@
33 const Validator = require('is-my-json-valid')
44
55 const isBlobMention = Validator(require('./schema/mention'))
66
7-const INDEX_VERSION = 1
7 +const INDEX_VERSION = 2
88
99 module.exports = {
1010 name: 'meme',
1111 version: require('./package.json').version,
@@ -54,9 +54,9 @@
5454
5555 function map (msg) {
5656 return getMentions(msg)
5757 .filter(isBlobMention)
58- // .map(m => m.name)
58 + .map(m => m.name)
5959 .map(n => n.replace(imgExtRegEx, '').replace(spaceCharRegex, ' '))
6060 .join(' ')
6161 }
6262

Built with git-ssb-web