fixed problems with /cc

This commit is contained in:
jeena 2013-02-26 02:49:05 +01:00
parent f9153f3ee2
commit f049a5d521

View file

@ -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);
}