fix: minor layout changes and cleanup.
This commit is contained in:
@@ -51,10 +51,16 @@ class ArtworkController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
public function create(Request $request)
|
||||
{
|
||||
$user = auth()->user();
|
||||
$podcasts = $this->publishedPodcasts();
|
||||
$request->session()->flash('success', '<h4>PLEASE READ!</h4>
|
||||
<p>When you submit your artwork, it will be stored for approval,
|
||||
this is because malicious users were using the site to dox and
|
||||
other vile behaviors. You will not see it in the list of artworks
|
||||
until it has been approved.</p>
|
||||
<h4>YOU DON\'T HAVE TO SUBMIT IT MULTIPLE TIMES!</h4>');
|
||||
return view('artworks.submit', [
|
||||
'user' => $user,
|
||||
'pageTitle' => 'Submit New Artwork',
|
||||
@@ -170,7 +176,8 @@ class ArtworkController extends Controller
|
||||
->save(Storage::disk('static')->path('/thumbnails') . '/' . $artwork->filename);
|
||||
ImageOptimizer::optimize(Storage::disk('static')->path('/artworks/' . $artwork->filename));
|
||||
ImageOptimizer::optimize(Storage::disk('static')->path('/thumbnails/' . $artwork->filename));
|
||||
return redirect('/artworks/' . $artwork->id);
|
||||
$request->session()->flash('success', '<h4>Your artwork has been submitted successfully</h4><p>Someone with permission will approve it for public consumption shortly, <strong>you do not need to submit it again.</strong> - TYFYC and ITM!</p>');
|
||||
return redirect('/artworks');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user