Merge pull request #10823 from atjonathan/feature/desc-emoji

Added emoji support for Bio
This commit is contained in:
Logan Tegman
2016-10-09 21:44:44 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import dedent from 'dedent';
import moment from 'moment-timezone';
import { Observable } from 'rx';
import debugFactory from 'debug';
import emoji from 'node-emoji';
import {
frontEndChallengeId,
@@ -331,6 +332,10 @@ module.exports = function(app) {
});
}
if (userPortfolio.bio) {
userPortfolio.bio = emoji.emojify(userPortfolio.bio);
}
return map$.map(({ entities }) => createNameIdMap(entities))
.flatMap(entities => buildDisplayChallenges(
entities,