kopia lustrzana https://github.com/pixelfed/pixelfed
Update ContactController
rodzic
3004c438f1
commit
33d15f4951
|
|
@ -50,4 +50,15 @@ class ContactController extends Controller
|
|||
|
||||
return redirect()->back()->with('status', 'Success - Your message has been sent to admins.');
|
||||
}
|
||||
|
||||
public function showAdminResponse(Request $request, $id)
|
||||
{
|
||||
abort_if(!$request->user(), 404);
|
||||
$uid = $request->user()->id;
|
||||
$contact = Contact::whereUserId($uid)
|
||||
->whereNotNull('response')
|
||||
->whereNotNull('responded_at')
|
||||
->findOrFail($id);
|
||||
return view('site.contact.admin-response', compact('contact'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue