Update Follower model, increase hourly limit from 30 to 150

This commit is contained in:
Daniel Supernault 2020-12-27 18:15:10 -07:00
parent 5843c9146a
commit b9b84e6fa4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class Follower extends Model
protected $fillable = ['profile_id', 'following_id', 'local_profile'];
const MAX_FOLLOWING = 7500;
const FOLLOW_PER_HOUR = 30;
const FOLLOW_PER_HOUR = 150;
public function actor()
{

View file

@ -154,7 +154,7 @@ class BaseApiController extends Controller
->orderBy('id', 'DESC')
->paginate($limit);
} 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());
$res = $this->fractal->createData($resource)->toArray();