mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 16:37:52 +00:00
fix of deleting user mention from mentions to reply
This commit is contained in:
parent
7069b01eeb
commit
48a5292249
@ -138,11 +138,10 @@ function postToElem(post, kind, promoted) {
|
||||
if (username !== defaultScreenName) {
|
||||
if (msg.mentions.indexOf(username) === -1)
|
||||
msg.mentions.splice(0, 0, username);
|
||||
} else {
|
||||
var i = msg.mentions.indexOf(defaultScreenName);
|
||||
if (i !== -1)
|
||||
msg.mentions.splice(i, 1);
|
||||
}
|
||||
for (var i = msg.mentions.indexOf(defaultScreenName); i !== -1; i = msg.mentions.indexOf(defaultScreenName))
|
||||
msg.mentions.splice(i, 1);
|
||||
|
||||
if (msg.mentions.length)
|
||||
var replyTo = '@' + msg.mentions.join(' @') + ' ';
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user