You've already forked mastodon-utils
							
							
				mirror of
				https://github.com/jakejarvis/mastodon-utils.git
				synced 2025-11-04 10:20:11 -05:00 
			
		
		
		
	patches to change default glitch settings for logged out users
This commit is contained in:
		
							
								
								
									
										53
									
								
								patches/glitch/custom-glitch-defaults.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								patches/glitch/custom-glitch-defaults.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
diff --git a/app/javascript/flavours/glitch/reducers/local_settings.js b/app/javascript/flavours/glitch/reducers/local_settings.js
 | 
			
		||||
index 81ab1cb0d..8aa07d4c3 100644
 | 
			
		||||
--- a/app/javascript/flavours/glitch/reducers/local_settings.js
 | 
			
		||||
+++ b/app/javascript/flavours/glitch/reducers/local_settings.js
 | 
			
		||||
@@ -11,7 +11,7 @@ const initialState = ImmutableMap({
 | 
			
		||||
   navbar_under : false,
 | 
			
		||||
   side_arm  : 'none',
 | 
			
		||||
   side_arm_reply_mode : 'keep',
 | 
			
		||||
-  show_reply_count : false,
 | 
			
		||||
+  show_reply_count : true,
 | 
			
		||||
   always_show_spoilers_field: false,
 | 
			
		||||
   confirm_missing_media_description: false,
 | 
			
		||||
   confirm_boost_missing_media_description: false,
 | 
			
		||||
@@ -19,10 +19,10 @@ const initialState = ImmutableMap({
 | 
			
		||||
   prepend_cw_re: true,
 | 
			
		||||
   preselect_on_reply: true,
 | 
			
		||||
   inline_preview_cards: true,
 | 
			
		||||
-  hicolor_privacy_icons: false,
 | 
			
		||||
+  hicolor_privacy_icons: true,
 | 
			
		||||
   show_content_type_choice: false,
 | 
			
		||||
   tag_misleading_links: true,
 | 
			
		||||
-  rewrite_mentions: 'no',
 | 
			
		||||
+  rewrite_mentions: 'acct',
 | 
			
		||||
   content_warnings : ImmutableMap({
 | 
			
		||||
     filter       : null,
 | 
			
		||||
     media_outside: false,
 | 
			
		||||
@@ -33,7 +33,7 @@ const initialState = ImmutableMap({
 | 
			
		||||
     auto        : ImmutableMap({
 | 
			
		||||
       all              : false,
 | 
			
		||||
       notifications    : true,
 | 
			
		||||
-      lengthy          : true,
 | 
			
		||||
+      lengthy          : false,
 | 
			
		||||
       reblogs          : false,
 | 
			
		||||
       replies          : false,
 | 
			
		||||
       media            : false,
 | 
			
		||||
@@ -45,7 +45,7 @@ const initialState = ImmutableMap({
 | 
			
		||||
     show_action_bar : true,
 | 
			
		||||
   }),
 | 
			
		||||
   media     : ImmutableMap({
 | 
			
		||||
-    letterbox        : true,
 | 
			
		||||
+    letterbox        : false,
 | 
			
		||||
     fullwidth        : true,
 | 
			
		||||
     reveal_behind_cw : false,
 | 
			
		||||
     pop_in_player    : true,
 | 
			
		||||
@@ -56,7 +56,7 @@ const initialState = ImmutableMap({
 | 
			
		||||
     tab_badge     : true,
 | 
			
		||||
   }),
 | 
			
		||||
   status_icons : ImmutableMap({
 | 
			
		||||
-    language:   true,
 | 
			
		||||
+    language:   false,
 | 
			
		||||
     reply:      true,
 | 
			
		||||
     local_only: true,
 | 
			
		||||
     media:      true,
 | 
			
		||||
							
								
								
									
										24374
									
								
								patches/glitch/remove-glitch-cruft.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24374
									
								
								patches/glitch/remove-glitch-cruft.patch
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										13
									
								
								patches/increase-sidekiq-http-timeout.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								patches/increase-sidekiq-http-timeout.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
diff --git a/app/lib/request.rb b/app/lib/request.rb
 | 
			
		||||
index 96d934a8f..63acfd5c6 100644
 | 
			
		||||
--- a/app/lib/request.rb
 | 
			
		||||
+++ b/app/lib/request.rb
 | 
			
		||||
@@ -20,7 +20,7 @@ class Request
 | 
			
		||||
   # We enforce a 5s timeout on DNS resolving, 5s timeout on socket opening
 | 
			
		||||
   # and 5s timeout on the TLS handshake, meaning the worst case should take
 | 
			
		||||
   # about 15s in total
 | 
			
		||||
-  TIMEOUT = { connect: 5, read: 10, write: 10 }.freeze
 | 
			
		||||
+  TIMEOUT = { connect: 10, read: 15, write: 15 }.freeze
 | 
			
		||||
 
 | 
			
		||||
   include RoutingHelper
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user