summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-30 14:15:28 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-30 14:15:28 -0500
commit0b3be654a2d13cd3f74d489c75beec3ada4a6d80 (patch)
tree634fb2e275444e7bc5a1def6af3178c94fe800dc /web/react/utils/utils.jsx
parentc919bd9e52e56621c9f94007de6410c3810e06c3 (diff)
downloadchat-0b3be654a2d13cd3f74d489c75beec3ada4a6d80.tar.gz
chat-0b3be654a2d13cd3f74d489c75beec3ada4a6d80.tar.bz2
chat-0b3be654a2d13cd3f74d489c75beec3ada4a6d80.zip
Fix webhook post aggregation and pending/failed post aggregation
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 80c377d7f..0c08c2df6 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -854,7 +854,7 @@ export function isMobile() {
export function isComment(post) {
if ('root_id' in post) {
- return post.root_id !== '';
+ return post.root_id !== '' && post.root_id != null;
}
return false;
}