added /cc to replays
This commit is contained in:
parent
fc72ad484e
commit
b37eb4a9cb
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ body {
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #00317a;
|
color: #00317a;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
|
|
|
@ -865,6 +865,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
Core.prototype.replyTo = function(entity, status_id, mentions, is_private) {
|
Core.prototype.replyTo = function(entity, status_id, mentions, is_private) {
|
||||||
|
|
||||||
var string = "^" + entity.replace("https://", "") + " ";
|
var string = "^" + entity.replace("https://", "") + " ";
|
||||||
|
if(mentions.length > 0) string += "\n\n/cc ";
|
||||||
for (var i = 0; i < mentions.length; i++) {
|
for (var i = 0; i < mentions.length; i++) {
|
||||||
var e = mentions[i].entity.replace("https://", "");
|
var e = mentions[i].entity.replace("https://", "");
|
||||||
if(string.indexOf(e) == -1) string += "^" + e + " ";
|
if(string.indexOf(e) == -1) string += "^" + e + " ";
|
||||||
|
|
Reference in a new issue