Parcourir la source

Merge branch 'staging' into patch-8

daniel il y a 3 ans
Parent
commit
7b164ef300

+ 3 - 0
CHANGELOG.md

@@ -9,6 +9,9 @@
 - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1))
 - 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))
 - Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24))
 - Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1))
 - 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)
 ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)
 
 

+ 0 - 1
app/Console/Commands/Installer.php

@@ -97,7 +97,6 @@ class Installer extends Command
             if(extension_loaded($ext) == false) {
             if(extension_loaded($ext) == false) {
                 $this->error("- {$ext} extension not found, aborting installation");
                 $this->error("- {$ext} extension not found, aborting installation");
                 exit;
                 exit;
-            } else {
             }
             }
         }
         }
         $this->info("- Required PHP extensions found!");
         $this->info("- Required PHP extensions found!");

+ 1 - 1
app/Http/Controllers/AdminController.php

@@ -120,7 +120,7 @@ class AdminController extends Controller
 	public function appsHome(Request $request)
 	public function appsHome(Request $request)
 	{
 	{
 		$filter = $request->input('filter');
 		$filter = $request->input('filter');
-		if(in_array($filter, ['revoked'])) {
+		if($filter == 'revoked') {
 			$apps = OauthClient::with('user')
 			$apps = OauthClient::with('user')
 			->whereNotNull('user_id')
 			->whereNotNull('user_id')
 			->whereRevoked(true)
 			->whereRevoked(true)

+ 0 - 1
app/Transformer/Api/Mastodon/v1/StatusTransformer.php

@@ -38,7 +38,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
 				'website'   => null
 				'website'   => null
 			 ],
 			 ],
 			'mentions'                  => [],
 			'mentions'                  => [],
-			'tags'                      => [],
 			'emojis'                    => [],
 			'emojis'                    => [],
 			'card'                      => null,
 			'card'                      => null,
 			'poll'                      => null,
 			'poll'                      => null,

+ 1 - 0
app/Util/ActivityPub/Inbox.php

@@ -667,6 +667,7 @@ class Inbox
 					if($story) {
 					if($story) {
 						StoryExpire::dispatch($story)->onQueue('story');
 						StoryExpire::dispatch($story)->onQueue('story');
 					}
 					}
+					break;
 
 
 				default:
 				default:
 					return;
 					return;

+ 1 - 2
config/exp.php

@@ -32,6 +32,5 @@ return [
 	'spa' => true,
 	'spa' => true,
 
 
 	// Enforce Mastoapi Compatibility (alpha)
 	// 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),
 ];
 ];

+ 1 - 1
config/trustedproxy.php

@@ -23,5 +23,5 @@ return [
      * how many proxies that client's request has
      * how many proxies that client's request has
      * subsequently passed through.
      * subsequently passed through.
      */
      */
-    'proxies' => env('TRUST_PROXIES', ''),
+    'proxies' => env('TRUST_PROXIES', '*'),
 ];
 ];

+ 0 - 1
resources/assets/js/components/PostComponent.vue

@@ -735,7 +735,6 @@ export default {
 						layout: this.profileLayout,
 						layout: this.profileLayout,
 						showProfileMorePosts: false,
 						showProfileMorePosts: false,
 						profileMorePosts: [],
 						profileMorePosts: [],
-						replySending: false,
 						reactionBarLoading: true,
 						reactionBarLoading: true,
 						tributeSettings: {
 						tributeSettings: {
 							collection: [
 							collection: [

+ 1 - 1
resources/assets/js/components/PostMenu.vue

@@ -160,7 +160,7 @@
 						});
 						});
 					break;
 					break;
 					case 'suspend':
 					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({
 						swal({
 							title: 'Confirm',
 							title: 'Confirm',
 							text: msg,
 							text: msg,

+ 0 - 1
resources/assets/js/components/RemotePost.vue

@@ -614,7 +614,6 @@ export default {
 						layout: this.profileLayout,
 						layout: this.profileLayout,
 						showProfileMorePosts: false,
 						showProfileMorePosts: false,
 						profileMorePosts: [],
 						profileMorePosts: [],
-						replySending: false,
 						reactionBarLoading: true,
 						reactionBarLoading: true,
 						profileUrl: null,
 						profileUrl: null,
 						currentLayout: 'status'
 						currentLayout: 'status'

+ 0 - 1
resources/lang/fi/profile.php

@@ -4,6 +4,5 @@ return [
   'emptyTimeline'  => 'Tällä käyttäjällä ei ole vielä päivityksiä!',
   'emptyTimeline'  => 'Tällä käyttäjällä ei ole vielä päivityksiä!',
   'emptyFollowers' => 'Tällä käyttäjällä ei ole vielä seuraajia!',
   'emptyFollowers' => 'Tällä käyttäjällä ei ole vielä seuraajia!',
   'emptyFollowing' => 'Tämä käyttäjä ei vielä seuraa ketään!',
   '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',
   'savedWarning'   => 'Vain sinä voit nähdä, mitä olet tallentanut',
 ];
 ];

+ 5 - 0
resources/views/admin/diagnostics/home.blade.php

@@ -184,6 +184,11 @@
 			<strong><span class="badge badge-primary">Storage</span> Filesystems default (local/s3/spaces): </strong>
 			<strong><span class="badge badge-primary">Storage</span> Filesystems default (local/s3/spaces): </strong>
 			<span>{{ config_cache('filesystems.default')}}</span>
 			<span>{{ config_cache('filesystems.default')}}</span>
 		</li>
 		</li>
+		<li>
+			<strong><span class="badge badge-primary">Network</span> TrustedProxy: </strong>
+			<span>{{ config('trustedproxy.proxies') }}</span>
+		</li>
+
 	</ul>
 	</ul>
 </div>
 </div>
 <div class="pb-3 border-bottom">
 <div class="pb-3 border-bottom">

+ 1 - 1
resources/views/settings/email.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
             @endforeach
     </div>
     </div>
 @endif
 @endif

+ 1 - 1
resources/views/settings/password.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
             @endforeach
     </div>
     </div>
 @endif
 @endif

+ 1 - 1
resources/views/settings/template.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
             @endforeach
     </div>
     </div>
 @endif
 @endif