You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use separate structs like CommunitySafe in order to avoid that sensitive data like federation private keys are exposed in API responses. In fact this seems completely unnecessary, we can remove these "safe" structs and use serde(skip) instead.
Similarly the trait DeletableOrRemovable can be replaced using serde(skip_serializing_if) and a function which checks if the item was removed/deleted.
The text was updated successfully, but these errors were encountered:
* Get rid of Safe Views, use serde_skip
- Also change the ViewToVec, to work with non-vector cases. Might be
necessary in preparation for #2763
- Fixes#2712
* Forgot one safe
---------
Co-authored-by: Nutomic <me@nutomic.com>
* Get rid of Safe Views, use serde_skip
- Also change the ViewToVec, to work with non-vector cases. Might be
necessary in preparation for #2763
- Fixes#2712
* Forgot one safe
---------
Co-authored-by: Nutomic <me@nutomic.com>
We currently use separate structs like
CommunitySafe
in order to avoid that sensitive data like federation private keys are exposed in API responses. In fact this seems completely unnecessary, we can remove these "safe" structs and use serde(skip) instead.Similarly the trait
DeletableOrRemovable
can be replaced using serde(skip_serializing_if) and a function which checks if the item was removed/deleted.The text was updated successfully, but these errors were encountered: