Update rate limits

This commit is contained in:
Daniel Supernault 2020-01-05 21:53:59 -07:00
parent 034fdb4d42
commit da8b06c088
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -6,7 +6,7 @@ trait User {
public function isTrustedAccount() public function isTrustedAccount()
{ {
return $this->created_at->lt(now()->subDays(20)); return $this->created_at->lt(now()->subDays(60));
} }
public function getMaxPostsPerHourAttribute() public function getMaxPostsPerHourAttribute()
@ -98,4 +98,19 @@ trait User {
{ {
return 5000; return 5000;
} }
public function getMaxStoriesPerHourAttribute()
{
return 10;
}
public function getMaxStoriesPerDayAttribute()
{
return 15;
}
public function getMaxStoryDeletePerDayAttribute()
{
return 20;
}
} }