mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Follower model, increase hourly limit from 30 to 150
This commit is contained in:
parent
5843c9146a
commit
b9b84e6fa4
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Follower extends Model
|
||||||
protected $fillable = ['profile_id', 'following_id', 'local_profile'];
|
protected $fillable = ['profile_id', 'following_id', 'local_profile'];
|
||||||
|
|
||||||
const MAX_FOLLOWING = 7500;
|
const MAX_FOLLOWING = 7500;
|
||||||
const FOLLOW_PER_HOUR = 30;
|
const FOLLOW_PER_HOUR = 150;
|
||||||
|
|
||||||
public function actor()
|
public function actor()
|
||||||
{
|
{
|
||||||
|
|
|
@ -154,7 +154,7 @@ class BaseApiController extends Controller
|
||||||
->orderBy('id', 'DESC')
|
->orderBy('id', 'DESC')
|
||||||
->paginate($limit);
|
->paginate($limit);
|
||||||
} else {
|
} else {
|
||||||
$statuses = $statuses->whereVisibility('public')->orderBy('id', 'desc')->paginate($limit);
|
$statuses = $statuses->whereScope('public')->orderBy('id', 'desc')->paginate($limit);
|
||||||
}
|
}
|
||||||
$resource = new Fractal\Resource\Collection($statuses, new StatusTransformer());
|
$resource = new Fractal\Resource\Collection($statuses, new StatusTransformer());
|
||||||
$res = $this->fractal->createData($resource)->toArray();
|
$res = $this->fractal->createData($resource)->toArray();
|
||||||
|
|
Loading…
Reference in a new issue