diff --git a/CHANGELOG.md b/CHANGELOG.md index c2ee1bff3..ad639f54e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1)) - Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24)) - Fix JSON-LD contexts ([#3464](https://github.com/pixelfed/pixelfed/pull/3464)) +- Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1)) +- Add trusted proxies flag to admin dashboard diagnostics ([#3450](https://github.com/pixelfed/pixelfed/pull/3450)) +- Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1)) +- Update exp config, enforce mastoapi compatibility by default ([a160b233](https://github.com/pixelfed/pixelfed/commit/a160b233)) ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3) diff --git a/app/Console/Commands/Installer.php b/app/Console/Commands/Installer.php index c0efc633c..d4839dfc1 100644 --- a/app/Console/Commands/Installer.php +++ b/app/Console/Commands/Installer.php @@ -97,7 +97,6 @@ class Installer extends Command if(extension_loaded($ext) == false) { $this->error("- {$ext} extension not found, aborting installation"); exit; - } else { } } $this->info("- Required PHP extensions found!"); diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index d83088737..8cacd6fb6 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -120,7 +120,7 @@ class AdminController extends Controller public function appsHome(Request $request) { $filter = $request->input('filter'); - if(in_array($filter, ['revoked'])) { + if($filter == 'revoked') { $apps = OauthClient::with('user') ->whereNotNull('user_id') ->whereRevoked(true) diff --git a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php index a9196249c..3467654af 100644 --- a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php @@ -38,7 +38,6 @@ class StatusTransformer extends Fractal\TransformerAbstract 'website' => null ], 'mentions' => [], - 'tags' => [], 'emojis' => [], 'card' => null, 'poll' => null, diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 25e3f186b..331fd52c1 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -667,6 +667,7 @@ class Inbox if($story) { StoryExpire::dispatch($story)->onQueue('story'); } + break; default: return; diff --git a/config/exp.php b/config/exp.php index 181c49f47..0c9f83706 100644 --- a/config/exp.php +++ b/config/exp.php @@ -32,6 +32,5 @@ return [ 'spa' => true, // Enforce Mastoapi Compatibility (alpha) - // Note: this may break 3rd party apps who use non-mastodon compliant fields - 'emc' => env('EXP_EMC', false), + 'emc' => env('EXP_EMC', true), ]; diff --git a/config/trustedproxy.php b/config/trustedproxy.php index 608e189d5..81cef227e 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -23,5 +23,5 @@ return [ * how many proxies that client's request has * subsequently passed through. */ - 'proxies' => env('TRUST_PROXIES', ''), + 'proxies' => env('TRUST_PROXIES', '*'), ]; diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 0378a2213..7d0c5a92a 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -735,7 +735,6 @@ export default { layout: this.profileLayout, showProfileMorePosts: false, profileMorePosts: [], - replySending: false, reactionBarLoading: true, tributeSettings: { collection: [ diff --git a/resources/assets/js/components/PostMenu.vue b/resources/assets/js/components/PostMenu.vue index 55b7c3de0..6b4f72728 100644 --- a/resources/assets/js/components/PostMenu.vue +++ b/resources/assets/js/components/PostMenu.vue @@ -160,7 +160,7 @@ }); break; case 'suspend': - msg = 'Are you sure you want to suspend the account of ' + username + ' ?'; + let msg = 'Are you sure you want to suspend the account of ' + username + ' ?'; swal({ title: 'Confirm', text: msg, diff --git a/resources/assets/js/components/RemotePost.vue b/resources/assets/js/components/RemotePost.vue index 29e855a5a..87c516147 100644 --- a/resources/assets/js/components/RemotePost.vue +++ b/resources/assets/js/components/RemotePost.vue @@ -614,7 +614,6 @@ export default { layout: this.profileLayout, showProfileMorePosts: false, profileMorePosts: [], - replySending: false, reactionBarLoading: true, profileUrl: null, currentLayout: 'status' diff --git a/resources/assets/js/components/partials/PollCard.vue b/resources/assets/js/components/partials/PollCard.vue index b4898f2e9..289c36109 100644 --- a/resources/assets/js/components/partials/PollCard.vue +++ b/resources/assets/js/components/partials/PollCard.vue @@ -98,7 +98,7 @@

{{ status.poll.votes_count }} votes - Refresh Results + Refresh Results

Loading... diff --git a/resources/lang/fi/profile.php b/resources/lang/fi/profile.php index 96d98c98a..b04f9107c 100644 --- a/resources/lang/fi/profile.php +++ b/resources/lang/fi/profile.php @@ -4,6 +4,5 @@ return [ 'emptyTimeline' => 'Tällä käyttäjällä ei ole vielä päivityksiä!', 'emptyFollowers' => 'Tällä käyttäjällä ei ole vielä seuraajia!', 'emptyFollowing' => 'Tämä käyttäjä ei vielä seuraa ketään!', - 'savedWarning' => 'Only you can see what you\'ve saved', 'savedWarning' => 'Vain sinä voit nähdä, mitä olet tallentanut', ]; diff --git a/resources/views/admin/diagnostics/home.blade.php b/resources/views/admin/diagnostics/home.blade.php index c55645e7b..ca605a61f 100644 --- a/resources/views/admin/diagnostics/home.blade.php +++ b/resources/views/admin/diagnostics/home.blade.php @@ -184,6 +184,11 @@ Storage Filesystems default (local/s3/spaces): {{ config_cache('filesystems.default')}} +
  • + Network TrustedProxy: + {{ config('trustedproxy.proxies') }} +
  • +
    diff --git a/resources/views/profile/embed.blade.php b/resources/views/profile/embed.blade.php index 4850f41f5..0050a90e2 100644 --- a/resources/views/profile/embed.blade.php +++ b/resources/views/profile/embed.blade.php @@ -37,7 +37,7 @@
    - + {{$profile['username']}} diff --git a/resources/views/settings/avatar.blade.php b/resources/views/settings/avatar.blade.php index 5ed73ef16..c4720052a 100644 --- a/resources/views/settings/avatar.blade.php +++ b/resources/views/settings/avatar.blade.php @@ -27,6 +27,7 @@ Max Size: 1 MB. Supported formats: jpeg, png.
    +
    @@ -39,8 +40,6 @@
    - - -@endsection \ No newline at end of file +@endsection diff --git a/resources/views/settings/email.blade.php b/resources/views/settings/email.blade.php index 602eb9579..7286896b1 100644 --- a/resources/views/settings/email.blade.php +++ b/resources/views/settings/email.blade.php @@ -9,7 +9,7 @@ @if ($errors->any())
    @foreach($errors->all() as $error) -

    {{ $error }} +

    {{ $error }}

    @endforeach
    @endif diff --git a/resources/views/settings/password.blade.php b/resources/views/settings/password.blade.php index 52782f102..395cbc2a5 100644 --- a/resources/views/settings/password.blade.php +++ b/resources/views/settings/password.blade.php @@ -9,7 +9,7 @@ @if ($errors->any())
    @foreach($errors->all() as $error) -

    {{ $error }} +

    {{ $error }}

    @endforeach
    @endif diff --git a/resources/views/settings/template.blade.php b/resources/views/settings/template.blade.php index 59cd3f8d5..ac5e98885 100644 --- a/resources/views/settings/template.blade.php +++ b/resources/views/settings/template.blade.php @@ -9,7 +9,7 @@ @if ($errors->any())
    @foreach($errors->all() as $error) -

    {{ $error }} +

    {{ $error }}

    @endforeach
    @endif diff --git a/resources/views/status/embed.blade.php b/resources/views/status/embed.blade.php index c5369a1ae..54d9b7330 100644 --- a/resources/views/status/embed.blade.php +++ b/resources/views/status/embed.blade.php @@ -37,7 +37,7 @@ @php($item = $status)
    - + {{$item->profile->username}}