erqan 11 years ago
parent
commit
bdc65cc243
  1. 5
      js/twister_formatpost.js
  2. 2
      js/twister_timeline.js

5
js/twister_formatpost.js

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

2
js/twister_timeline.js

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

Loading…
Cancel
Save