This commit is contained in:
erqan 2014-06-25 16:54:14 +03:00
parent 39ff28141e
commit bdc65cc243
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
// format "userpost" to html element
// kind = "original"/"ancestor"/"descendant"
function postToElem( post, kind ) {
function postToElem( post, kind, promoted ) {
/*
"userpost" :
{
@ -116,6 +116,9 @@ function postToElem( post, kind ) {
retweetedByElem.text('@'+retweeted_by);
}
if (typeof(promoted) !== 'undefined' && promoted)
elem.find('.post-propagate').remove();
return elem;
}

View File

@ -149,7 +149,7 @@ function processReceivedPosts(req, posts)
continue;
}
var streamPost = postToElem(post, "original");
var streamPost = postToElem(post, "original", req.getspam);
var timePost = post["userpost"]["time"];
streamPost.attr("data-time",timePost);