Add a comment to clarify the ban expires field.

add_expires_comment
Dessalines 2024-01-24 14:32:24 -05:00
parent d8f9e8a64c
commit 1ea9f034bc
2 changed files with 2 additions and 0 deletions

View File

@ -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>,
} }

View File

@ -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>,
} }