mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
partially address #556 - now comments can only be added after successfull decryption
This commit is contained in:
parent
ed590ee557
commit
599264e167
3 changed files with 8 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue