forked from mirror/pixelfed
commit
cd1a263f6e
|
@ -32,6 +32,7 @@
|
|||
- Updated PublicApiController, fix private account statuses api. Closes #2995. ([aa2dd26c](https://github.com/pixelfed/pixelfed/commit/aa2dd26c))
|
||||
- Updated Status model, use AccountService to generate urls instead of loading profile relation. ([2ae527c0](https://github.com/pixelfed/pixelfed/commit/2ae527c0))
|
||||
- Updated Autospam service, add mark all as read and mark all as not spam options and filter active, spam and not spam reports. ([ae8c7517](https://github.com/pixelfed/pixelfed/commit/ae8c7517))
|
||||
- Updated UserInviteController, fixes #3017. ([b8e9056e](https://github.com/pixelfed/pixelfed/commit/b8e9056e))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.1 (2021-09-07)](https://github.com/pixelfed/pixelfed/compare/v0.11.0...v0.11.1)
|
||||
|
|
|
@ -9,19 +9,16 @@ use Illuminate\Support\Str;
|
|||
|
||||
class UserInviteController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
abort_if(!config('pixelfed.user_invites.enabled'), 404);
|
||||
}
|
||||
|
||||
public function create(Request $request)
|
||||
{
|
||||
abort_if(!config('pixelfed.user_invites.enabled'), 404);
|
||||
abort_unless(Auth::check(), 403);
|
||||
return view('settings.invites.create');
|
||||
}
|
||||
|
||||
public function show(Request $request)
|
||||
{
|
||||
abort_if(!config('pixelfed.user_invites.enabled'), 404);
|
||||
abort_unless(Auth::check(), 403);
|
||||
$invites = UserInvite::whereUserId(Auth::id())->paginate(10);
|
||||
$limit = config('pixelfed.user_invites.limit.total');
|
||||
|
@ -31,6 +28,7 @@ class UserInviteController extends Controller
|
|||
|
||||
public function store(Request $request)
|
||||
{
|
||||
abort_if(!config('pixelfed.user_invites.enabled'), 404);
|
||||
abort_unless(Auth::check(), 403);
|
||||
$this->validate($request, [
|
||||
'email' => 'required|email|unique:users|unique:user_invites',
|
||||
|
|
Loading…
Reference in New Issue