exclude self mention on reply to self #33
This commit is contained in:
parent
471a255b78
commit
e1a81b4185
1 changed files with 5 additions and 1 deletions
|
@ -326,7 +326,11 @@ export class NewPostModal {
|
|||
if (navParams.data.type === 'reply') {
|
||||
this.replyid = navParams.data.post.id;
|
||||
this.options = {replyTo: this.replyid};
|
||||
this.ptext = "@" + navParams.data.post.user.username + " ";
|
||||
if (navParams.data.post.user.username !== this.myUsername) {
|
||||
this.ptext = "@" + navParams.data.post.user.username + " ";
|
||||
} else {
|
||||
this.ptext = ""
|
||||
}
|
||||
if (navParams.data.post.content.entities) {
|
||||
if (navParams.data.post.content.entities.mentions) {
|
||||
this.ptext = this.ptext + this.parseMentions(navParams.data.post.content.entities.mentions);
|
||||
|
|
Reference in a new issue