Mercurial > libervia-backend
diff src/plugins/plugin_comp_file_sharing.py @ 2522:95c31756944c
component file sharing, plugin XEP-0231: thumbnail are now returned by component using Bits of Binary:
thumbnails are saved in common cache, and sent blindly on request.
There is no access check for thumbnails yet, which is a security/privacy issue, but mitigated by the fact that content id must be known to retrieve the file.
Proper access check is planed.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 14 Mar 2018 08:14:32 +0100 |
parents | 353880a5c363 |
children | a201194fc461 |
line wrap: on
line diff
--- a/src/plugins/plugin_comp_file_sharing.py Wed Mar 14 08:11:20 2018 +0100 +++ b/src/plugins/plugin_comp_file_sharing.py Wed Mar 14 08:14:32 2018 +0100 @@ -36,7 +36,7 @@ C.PI_MODES: [C.PLUG_MODE_COMPONENT], C.PI_TYPE: C.PLUG_TYPE_ENTRY_POINT, C.PI_PROTOCOLS: [], - C.PI_DEPENDENCIES: ["FILE", "XEP-0234", "XEP-0260", "XEP-0261", "XEP-0264", "XEP-0329"], + C.PI_DEPENDENCIES: ["FILE", "XEP-0231", "XEP-0234", "XEP-0260", "XEP-0261", "XEP-0264", "XEP-0329"], C.PI_RECOMMENDATIONS: [], C.PI_MAIN: "FileSharing", C.PI_HANDLER: "no",