mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-10-02 15:00:02 +00:00
Implement self-destruct upon read when selfdes=1 in POST
This commit is contained in:
parent
8d19c794ed
commit
b6edab7171
7 changed files with 39 additions and 12 deletions
|
@ -44,6 +44,7 @@ namespace kamokan {
|
|||
const boost::string_view& parText,
|
||||
uint32_t parExpiry,
|
||||
const boost::string_view& parLang,
|
||||
bool parSelfDestruct,
|
||||
const std::string& parRemoteIP
|
||||
) const {
|
||||
SubmittedPastie pastie;
|
||||
|
@ -53,6 +54,7 @@ namespace kamokan {
|
|||
pastie.lang = std::string(parLang);
|
||||
pastie.remote_ip = parRemoteIP;
|
||||
pastie.token = token;
|
||||
pastie.self_destruct = parSelfDestruct;
|
||||
m_submitted_pasties.push_back(std::move(pastie));
|
||||
|
||||
Storage::SubmissionResult submission_res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue