mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
Add a comment to clarify the ban expires field. (#4400)
* Add a comment to clarify the ban expires field. * Add comment about simpler client implementation. * Better language.
This commit is contained in:
parent
dadf8f28f9
commit
8cde452fca
|
@ -97,6 +97,9 @@ pub struct BanFromCommunity {
|
||||||
pub ban: bool,
|
pub ban: bool,
|
||||||
pub remove_data: Option<bool>,
|
pub remove_data: Option<bool>,
|
||||||
pub reason: Option<String>,
|
pub reason: Option<String>,
|
||||||
|
/// A time that the ban will expire, in unix epoch seconds.
|
||||||
|
///
|
||||||
|
/// An i64 unix timestamp is used for a simpler API client implementation.
|
||||||
pub expires: Option<i64>,
|
pub expires: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,9 @@ pub struct BanPerson {
|
||||||
/// Optionally remove all their data. Useful for new troll accounts.
|
/// Optionally remove all their data. Useful for new troll accounts.
|
||||||
pub remove_data: Option<bool>,
|
pub remove_data: Option<bool>,
|
||||||
pub reason: Option<String>,
|
pub reason: Option<String>,
|
||||||
|
/// A time that the ban will expire, in unix epoch seconds.
|
||||||
|
///
|
||||||
|
/// An i64 unix timestamp is used for a simpler API client implementation.
|
||||||
pub expires: Option<i64>,
|
pub expires: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue