Commit e6eb7100 authored by Morgan McMillian's avatar Morgan McMillian

don't bother parsing mentions if there are not any.

resolves #46
parent 72c2bcf6
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment