exclude self mention on reply to self #33

This commit is contained in:
Morgan McMillian 2017-07-22 07:15:33 -07:00
parent 471a255b78
commit e1a81b4185

View file

@ -326,7 +326,11 @@ export class NewPostModal {
if (navParams.data.type === 'reply') { if (navParams.data.type === 'reply') {
this.replyid = navParams.data.post.id; this.replyid = navParams.data.post.id;
this.options = {replyTo: this.replyid}; this.options = {replyTo: this.replyid};
if (navParams.data.post.user.username !== this.myUsername) {
this.ptext = "@" + navParams.data.post.user.username + " "; this.ptext = "@" + navParams.data.post.user.username + " ";
} else {
this.ptext = ""
}
if (navParams.data.post.content.entities) { if (navParams.data.post.content.entities) {
if (navParams.data.post.content.entities.mentions) { if (navParams.data.post.content.entities.mentions) {
this.ptext = this.ptext + this.parseMentions(navParams.data.post.content.entities.mentions); this.ptext = this.ptext + this.parseMentions(navParams.data.post.content.entities.mentions);