mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +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 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 New Issue
Block a user