feat(core): add a limit to no. of outgoing pending friend requests

This commit is contained in:
Paul Makles
2024-06-23 19:39:18 +01:00
parent e8e9613169
commit 80666848cc
5 changed files with 26 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ webhooks_enabled = false
[features.limits]
[features.limits.default]
outgoing_friend_requests = 10
group_size = 100
bots = 5
message_length = 2000

View File

@@ -106,6 +106,8 @@ pub struct Api {
#[derive(Deserialize, Debug, Clone)]
pub struct FeaturesLimits {
pub outgoing_friend_requests: usize,
pub group_size: usize,
pub bots: usize,
pub message_length: usize,