From e6eb71003bb87b19dae4f9e4743b597a4a76dd13 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 19 Nov 2017 14:50:55 -0800 Subject: [PATCH] don't bother parsing mentions if there are not any. resolves #46 --- src/pages/stream/stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/stream/stream.ts b/src/pages/stream/stream.ts index 42c40d5..f916cbf 100644 --- a/src/pages/stream/stream.ts +++ b/src/pages/stream/stream.ts @@ -366,7 +366,7 @@ export class NewPostModal { this.ptext = "" } if (navParams.data.post.content.entities) { - if (navParams.data.post.content.entities.mentions) { + if (navParams.data.post.content.entities.mentions.length > 0) { this.ptext = this.ptext + this.parseMentions(navParams.data.post.content.entities.mentions); } }