mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
removed Retransmit button from spam posts (https://github.com/miguelfreitas/twister-core/issues/15#issuecomment-47088142)
This commit is contained in:
parent
39ff28141e
commit
bdc65cc243
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user