mirror of https://github.com/LemmyNet/lemmy.git
Add a comment to clarify the ban expires field.
parent
d8f9e8a64c
commit
1ea9f034bc
|
@ -97,6 +97,7 @@ 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.
|
||||||
pub expires: Option<i64>,
|
pub expires: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,7 @@ 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.
|
||||||
pub expires: Option<i64>,
|
pub expires: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue