mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +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
2 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,9 @@ pub struct BanFromCommunity {
|
|||
pub ban: bool,
|
||||
pub remove_data: Option<bool>,
|
||||
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>,
|
||||
}
|
||||
|
||||
|
|
|
@ -214,6 +214,9 @@ pub struct BanPerson {
|
|||
/// Optionally remove all their data. Useful for new troll accounts.
|
||||
pub remove_data: Option<bool>,
|
||||
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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue