partially address #556 - now comments can only be added after successfull decryption
This commit is contained in:
@@ -4926,7 +4926,6 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
||||
plaintexts[i][1]
|
||||
);
|
||||
}
|
||||
DiscussionViewer.finishDiscussion();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4980,6 +4979,12 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
||||
// we have to pass in remaining_time here
|
||||
TopNav.showEmailButton(paste.getTimeToLive());
|
||||
}
|
||||
|
||||
// only offer adding comments, after paste was successfully decrypted
|
||||
if (paste.isDiscussionEnabled()) {
|
||||
DiscussionViewer.finishDiscussion();
|
||||
}
|
||||
|
||||
})
|
||||
.catch((err) => {
|
||||
// wait for the user to type in the password,
|
||||
|
||||
Reference in New Issue
Block a user