mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-23 21:10:46 +00:00
Update rate limits
This commit is contained in:
parent
034fdb4d42
commit
da8b06c088
1 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue