Skip to content

Commit

Permalink
URGENT: better check if the user is blocked
Browse files Browse the repository at this point in the history
the block message was displayed for every user
  • Loading branch information
ricordisamoa committed Nov 23, 2013
1 parent 0d30333 commit 4a9c8a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dui/dui.js
Expand Up @@ -248,8 +248,7 @@ function getBlockInfo(callback){
},
function(data){
var blk=data.query.users[0];
if(typeof blk.blockid!='undefined') callback(blk);
else callback({});
callback(blk);
},
'jsonp'
);
Expand Down Expand Up @@ -792,7 +791,7 @@ function init(){
getUploads(function(uploads){
getBlockInfo(function(blockinfo){
$('#general')
.append(blockinfo.blockid!='undefined'?('<strong>Currently blocked by '+blockinfo.blockedby+' with an expiry time of '+blockinfo.blockexpiry+' because "<i>'+blockinfo.blockreason+'</i>"<br>'):'')
.append(typeof blockinfo.blockid!='undefined'?('<strong>Currently blocked by '+blockinfo.blockedby+' with an expiry time of '+blockinfo.blockexpiry+' because "<i>'+blockinfo.blockreason+'</i>"<br>'):'')
.append('<a href="'+wikipath+'?diff='+contribs[contribs.length-1].revid+'">First edit</a>: '+firstContribDate.toUTCString()+' ('+dateDiff(firstContribDate,new Date(),4,true)+')<br>')
.append('<a href="'+wikipath+'?diff='+contribs[0].revid+'">Most recent edit</a>: '+latestContribDate.toUTCString()+' ('+dateDiff(latestContribDate,new Date(),5,true)+')<br>')
.append('Live edits: '+contribs.length.toLocaleString()+'<br>')
Expand Down

1 comment on commit 4a9c8a3

@ricordisamoa
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug was first reported on Meta-Wiki by Pequod76.

Please sign in to comment.