diff --git a/app/Util/Lexer/RestrictedNames.php b/app/Util/Lexer/RestrictedNames.php index 1e09a11c3..dace884e2 100644 --- a/app/Util/Lexer/RestrictedNames.php +++ b/app/Util/Lexer/RestrictedNames.php @@ -174,6 +174,7 @@ class RestrictedNames 'privacy', 'reset', 'report', + 'results', 'reports', 'robot', 'robots', diff --git a/config/pixelfed.php b/config/pixelfed.php index 98400f51f..618e2cb4a 100644 --- a/config/pixelfed.php +++ b/config/pixelfed.php @@ -238,6 +238,25 @@ return [ */ 'optimize_video' => env('PF_OPTIMIZE_VIDEOS', true), + /* + |-------------------------------------------------------------------------- + | User invites + |-------------------------------------------------------------------------- + | + | Allow users to invite others via email. + | Will respect max user limit and prevent invites after the + | limit is reached. Default: off + | + */ + 'user_invites' => [ + 'enabled' => env('PF_USER_INVITES', false), + 'limit' => [ + 'total' => (int) env('PF_USER_INVITES_TOTAL_LIMIT', 0), + 'daily' => (int) env('PF_USER_INVITES_DAILY_LIMIT', 0), + 'monthly' => (int) env('PF_USER_INVITES_MONTHLY_LIMIT', 0), + ] + ], + 'media_types' => env('MEDIA_TYPES', 'image/jpeg,image/png,image/gif'), 'enforce_account_limit' => env('LIMIT_ACCOUNT_SIZE', true), diff --git a/resources/views/settings/accessibility.blade.php b/resources/views/settings/accessibility.blade.php new file mode 100644 index 000000000..6c63b68a8 --- /dev/null +++ b/resources/views/settings/accessibility.blade.php @@ -0,0 +1,61 @@ +@extends('settings.template') + +@section('section') + +
+

Accessibility

+
+
+
+ @csrf + {{--
+ compose_media_descriptions ? 'checked=""':''}} disabled> + +

Requires you to describe images for the visually impaired. Learn more.

+
+
+ + +

LiteUI is a lightweight, non-js design for low bandwidth devices. Learn more.

+
--}} +
+ reduce_motion ? 'checked=""':''}}> + +

Prevent animation effects.

+
+ {{--
+ optimize_screen_reader ? 'checked=""':''}}> + +

Optimizes the experience for screen readers.

+
--}} +
+ high_contrast_mode ? 'checked=""':''}}> + +

High contrast mode for the visually impaired.

+
+
+ video_autoplay ? 'checked=""':''}}> + +

Prevent videos from autoplaying. Learn more.

+
+
+
+
+ +
+
+
+ +@endsection \ No newline at end of file diff --git a/resources/views/settings/reports.blade.php b/resources/views/settings/reports.blade.php new file mode 100644 index 000000000..c64d7c8f4 --- /dev/null +++ b/resources/views/settings/reports.blade.php @@ -0,0 +1,38 @@ +@extends('settings.template') + +@section('section') + +
+

Reports

+
+
+

A list of reports you have made.

+ + + + + + + + + + + @foreach($reports as $report) + + + + + @if(!$report->admin_seen) + + @else + + @endif + + + @endforeach + +
IDTypeReportedStatusCreated
{{$report->id}}{{$report->type}}{{str_limit($report->reported()->url(), 30)}}UnresolvedResolved{{$report->created_at->diffForHumans(null, true, true)}}
+
+ {{$reports->links()}} +
+@endsection \ No newline at end of file