1
0
Fork 0
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:
King_DuckZ 2017-06-14 20:19:18 +01:00
commit b6edab7171
7 changed files with 39 additions and 12 deletions

View file

@ -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;