Update SettingsController

pull/1159/head
Daniel Supernault 2019-04-18 22:47:20 -06:00
rodzic cea44f9877
commit 7ea8233a61
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ class SettingsController extends Controller
public function exportFollowing() public function exportFollowing()
{ {
$data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(1440), function() { $data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(60), function() {
return Auth::user()->profile->following()->get()->map(function($i) { return Auth::user()->profile->following()->get()->map(function($i) {
return $i->url(); return $i->url();
}); });
@ -86,7 +86,7 @@ class SettingsController extends Controller
public function exportFollowers() public function exportFollowers()
{ {
$data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(1440), function() { $data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(60), function() {
return Auth::user()->profile->followers()->get()->map(function($i) { return Auth::user()->profile->followers()->get()->map(function($i) {
return $i->url(); return $i->url();
}); });
@ -105,7 +105,7 @@ class SettingsController extends Controller
if(!$exists) { if(!$exists) {
return redirect()->back(); return redirect()->back();
} }
$data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(1440), function() use($profile) { $data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(60), function() use($profile) {
return json_encode([ return json_encode([
'muted' => $profile->mutedProfileUrls(), 'muted' => $profile->mutedProfileUrls(),
'blocked' => $profile->blockedProfileUrls() 'blocked' => $profile->blockedProfileUrls()