mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update ExportSettings controller
This commit is contained in:
parent
00eefa24eb
commit
796f8ca78c
1 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ trait ExportSettings
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'type' => 'required|string|in:ap,api'
|
'type' => 'required|string|in:ap,api'
|
||||||
]);
|
]);
|
||||||
$limit = 300;
|
$limit = 500;
|
||||||
|
|
||||||
$profile = Auth::user()->profile;
|
$profile = Auth::user()->profile;
|
||||||
$type = 'ap';
|
$type = 'ap';
|
||||||
|
@ -116,7 +116,7 @@ trait ExportSettings
|
||||||
|
|
||||||
$filename = 'outbox.json';
|
$filename = 'outbox.json';
|
||||||
if($type == 'ap') {
|
if($type == 'ap') {
|
||||||
$data = Cache::remember('account:export:profile:statuses:ap:'.Auth::user()->profile->id, now()->addDays(7), function() {
|
$data = Cache::remember('account:export:profile:statuses:ap:'.Auth::user()->profile->id, now()->addHours(1), function() {
|
||||||
$profile = Auth::user()->profile->statuses;
|
$profile = Auth::user()->profile->statuses;
|
||||||
$fractal = new Fractal\Manager();
|
$fractal = new Fractal\Manager();
|
||||||
$fractal->setSerializer(new ArraySerializer());
|
$fractal->setSerializer(new ArraySerializer());
|
||||||
|
@ -125,7 +125,7 @@ trait ExportSettings
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$filename = 'api-statuses.json';
|
$filename = 'api-statuses.json';
|
||||||
$data = Cache::remember('account:export:profile:statuses:api:'.Auth::user()->profile->id, now()->addDays(7), function() {
|
$data = Cache::remember('account:export:profile:statuses:api:'.Auth::user()->profile->id, now()->addHours(1), function() {
|
||||||
$profile = Auth::user()->profile->statuses;
|
$profile = Auth::user()->profile->statuses;
|
||||||
$fractal = new Fractal\Manager();
|
$fractal = new Fractal\Manager();
|
||||||
$fractal->setSerializer(new ArraySerializer());
|
$fractal->setSerializer(new ArraySerializer());
|
||||||
|
|
Loading…
Reference in a new issue