Преглед на файлове

Update horizon config, add default timeout limit

Daniel Supernault преди 3 години
родител
ревизия
f6f2c27874
променени са 3 файла, в които са добавени 3 реда и са изтрити 38 реда
  1. 1 3
      app/Http/Controllers/ProfileController.php
  2. 2 0
      config/horizon.php
  3. 0 35
      resources/views/profile/memory.blade.php

+ 1 - 3
app/Http/Controllers/ProfileController.php

@@ -81,9 +81,7 @@ class ProfileController extends Controller
 					'list' => $settings->show_profile_followers
 				]
 			];
-			$ui = $request->has('ui') && $request->input('ui') == 'memory' ? 'profile.memory' : 'profile.show';
-
-			return view($ui, compact('profile', 'settings'));
+			return view('profile.show', compact('profile', 'settings'));
 		} else {
 			$key = 'profile:settings:' . $user->id;
 			$ttl = now()->addHours(6);

+ 2 - 0
config/horizon.php

@@ -175,6 +175,7 @@ return [
 				'memory'        => 128,
 				'tries'         => 3,
 				'nice'          => 0,
+				'timeout'		=> 60
 			],
 		],
 
@@ -187,6 +188,7 @@ return [
 				'memory'        => 128,
 				'tries'         => 3,
 				'nice'          => 0,
+				'timeout'       => 60
 			],
 		],
 	],

+ 0 - 35
resources/views/profile/memory.blade.php

@@ -1,35 +0,0 @@
-@extends('layouts.app',['title' => $profile->username . " on " . config('app.name')])
-
-@section('content')
-@if (session('error'))
-    <div class="alert alert-danger text-center font-weight-bold mb-0">
-        {{ session('error') }}
-    </div>
-@endif
-
-<memory-profile profile-id="{{$profile->id}}" profile-username="{{$profile->username}}" :profile-settings="{{json_encode($settings)}}" profile-layout="{{$profile->profile_layout ?? 'metro'}}"></memory-profile>
-@if($profile->website)
-<a class="d-none" href="{{$profile->website}}" rel="me">{{$profile->website}}</a>
-@endif
-
-<noscript>
-  <div class="container">
-    <p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
-  </div>
-</noscript>
-
-@endsection
-
-@push('meta')<meta property="og:description" content="{{$profile->bio}}">
-  @if(false == $settings['crawlable'] || $profile->remote_url)
-  <meta name="robots" content="noindex, nofollow">
-  @else  <meta property="og:image" content="{{$profile->avatarUrl()}}">
-    <link href="{{$profile->permalink('.atom')}}" rel="alternate" title="{{$profile->username}} on Pixelfed" type="application/atom+xml">
-    <link href='{{$profile->permalink()}}' rel='alternate' type='application/activity+json'>
-  @endif
-@endpush
-
-@push('scripts')<script type="text/javascript" src="{{ mix('js/memoryprofile.js') }}"></script>
-    <script type="text/javascript" defer>App.boot();</script>
-
-@endpush