1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Start to implement requests limit

This commit is contained in:
2021-01-22 19:39:14 +01:00
parent 89d2cedfb7
commit ebc5ebea2a
6 changed files with 103 additions and 10 deletions

View File

@@ -57,6 +57,9 @@ pub mod database_tables_names {
pub const NOTIFICATIONS_TABLE: &str = "comunic_notifications";
}
/// Lifetime of limit counter (1 hour)
pub const LIMIT_COUNTER_LIFETIME: u64 = 60 * 60;
/// The account image to show for user who do not have any
pub const DEFAULT_ACCOUNT_IMAGE: &str = "avatars/0Reverse.png";