From da8b06c0880308ac00b879aa0a2fecc7ed181585 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 5 Jan 2020 21:53:59 -0700 Subject: [PATCH] Update rate limits --- app/Util/RateLimit/User.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/Util/RateLimit/User.php b/app/Util/RateLimit/User.php index ddcfc2212..4c292095d 100644 --- a/app/Util/RateLimit/User.php +++ b/app/Util/RateLimit/User.php @@ -6,7 +6,7 @@ trait User { public function isTrustedAccount() { - return $this->created_at->lt(now()->subDays(20)); + return $this->created_at->lt(now()->subDays(60)); } public function getMaxPostsPerHourAttribute() @@ -98,4 +98,19 @@ trait User { { return 5000; } + + public function getMaxStoriesPerHourAttribute() + { + return 10; + } + + public function getMaxStoriesPerDayAttribute() + { + return 15; + } + + public function getMaxStoryDeletePerDayAttribute() + { + return 20; + } } \ No newline at end of file