summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_body.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r--web/react/components/post_body.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 5e460d686..3be615bb9 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -18,7 +18,7 @@ export default class PostBody extends React.Component {
this.state = {links: linkData.links, message: linkData.text};
}
- getTextNodesIn(nodeIn) {
+ getAllChildNodes(nodeIn) {
var textNodes = [];
function getTextNodes(node) {
@@ -35,7 +35,7 @@ export default class PostBody extends React.Component {
parseEmojis() {
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
- this.getTextNodesIn(React.findDOMNode(this)).forEach((current) => {
+ this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => {
global.window.emojify.run(current);
});
}