fixed problems with /cc
This commit is contained in:
parent
f9153f3ee2
commit
f049a5d521
1 changed files with 5 additions and 2 deletions
|
@ -865,12 +865,15 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
Core.prototype.replyTo = function(entity, status_id, mentions, is_private) {
|
||||
|
||||
var string = "^" + entity.replace("https://", "") + " ";
|
||||
if(mentions.length > 0) string += "\n\n/cc ";
|
||||
|
||||
var ms = "";
|
||||
for (var i = 0; i < mentions.length; i++) {
|
||||
var e = mentions[i].entity.replace("https://", "");
|
||||
if(string.indexOf(e) == -1) string += "^" + e;
|
||||
if(string.indexOf(e) == -1) ms += "^" + e;
|
||||
}
|
||||
|
||||
if(ms.length > 0) string += "\n\n/cc " + ms;
|
||||
|
||||
HostApp.openNewMessageWidow(entity, status_id, string, is_private);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue