Skip to content

Commit c67f0c5

Browse files
committed
Update AccountInterstitialController, add autospam type
1 parent 401512c commit c67f0c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Http/Controllers/AccountInterstitialController.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ public function get(Request $request)
2020
->interstitials()
2121
->whereNull('read_at')
2222
->first();
23+
2324
if(!$interstitial) {
2425
$user = $request->user();
2526
$user->has_interstitial = false;
2627
$user->save();
2728
return redirect('/');
2829
}
30+
2931
$meta = json_decode($interstitial->meta);
3032
$view = $interstitial->view;
3133
return view($view, compact('interstitial', 'meta'));
@@ -35,7 +37,7 @@ public function read(Request $request)
3537
{
3638
$this->validate($request, [
3739
'id' => 'required',
38-
'type' => 'required|in:post.cw,post.removed,post.unlist',
40+
'type' => 'required|in:post.cw,post.removed,post.unlist,post.autospam',
3941
'action' => 'required|in:appeal,confirm',
4042
'appeal_message' => 'nullable|max:500'
4143
]);

0 commit comments

Comments
 (0)