campaignd: Drop removed pbl attributes on upload if applicable

Closes #6284.
This commit is contained in:
Iris Morelle 2021-11-12 17:44:31 -03:00 committed by Gunter Labes
parent 9b23565b0c
commit 7b1ec72acb

View file

@ -1468,9 +1468,10 @@ void server::handle_upload(const server::request& req)
// Write general metadata attributes
addon.copy_attributes(upload,
addon.copy_or_remove_attributes(upload,
"title", "name", "author", "description", "version", "icon",
"translate", "dependencies", "core", "type", "tags", "email");
"translate", "dependencies", "core", "type", "tags", "email"
);
const std::string& pathstem = "data/" + name;
addon["filename"] = pathstem;