mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
26 lines
327 B
PHP
26 lines
327 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Util\RateLimit;
|
||
|
|
||
|
trait User {
|
||
|
|
||
|
public function getMaxPostsPerHourAttribute()
|
||
|
{
|
||
|
return 20;
|
||
|
}
|
||
|
|
||
|
public function getMaxPostsPerDayAttribute()
|
||
|
{
|
||
|
return 100;
|
||
|
}
|
||
|
|
||
|
public function getMaxCommentsPerHourAttribute()
|
||
|
{
|
||
|
return 50;
|
||
|
}
|
||
|
|
||
|
public function getMaxCommentsPerDayAttribute()
|
||
|
{
|
||
|
return 500;
|
||
|
}
|
||
|
}
|