Why No Bounty v0.2:

- deleted questions
- reputation comparison fix
This commit is contained in:
Glorfindel 2017-12-22 10:56:45 +01:00
parent c2f907c917
commit 41222fb3f0
1 changed files with 13 additions and 10 deletions

View File

@ -46,7 +46,9 @@
}
// Is the question closed / locked?
var status = $("#question .question-status h2 b").text();
var questionStatus = $("#question .question-status h2 b");
if (questionStatus.length !== 0) {
var status = questionStatus.get(0).text();
if (status === "closed" || status === "put on hold" || status == "marked") {
addInformation("the question is closed");
return;
@ -57,6 +59,7 @@
addInformation("the question is deleted");
return;
}
}
// Is the question at least two days old?
var creationDate = Date.parse($("#question .owner .user-action-time span").attr("title"));