mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-17 20:11:27 +00:00
Update ContactController
This commit is contained in:
parent
3004c438f1
commit
33d15f4951
1 changed files with 11 additions and 0 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue