Pārlūkot izejas kodu

Merge pull request #2007 from shleeable/cleanup

Code Review - dead code
daniel 5 gadi atpakaļ
vecāks
revīzija
585a5ca8f8

+ 0 - 1
.env.example

@@ -7,7 +7,6 @@ APP_URL=http://localhost
 APP_DOMAIN="localhost"
 ADMIN_DOMAIN="localhost"
 SESSION_DOMAIN="localhost"
-SESSION_SECURE_COOKIE=true
 TRUST_PROXIES="*"
 
 LOG_CHANNEL=stack

+ 0 - 1
.env.example.docker

@@ -7,7 +7,6 @@ APP_URL=http://localhost
 APP_DOMAIN="localhost"
 ADMIN_DOMAIN="localhost"
 SESSION_DOMAIN="localhost"
-SESSION_SECURE_COOKIE=true
 TRUST_PROXIES="*"
 
 LOG_CHANNEL=stack

+ 0 - 1
.env.testing

@@ -7,7 +7,6 @@ APP_URL=https://pixelfed.dev
 APP_DOMAIN="pixelfed.dev"
 ADMIN_DOMAIN="pixelfed.dev"
 SESSION_DOMAIN="pixelfed.dev"
-SESSION_SECURE_COOKIE=true
 TRUST_PROXIES="*"
 
 LOG_CHANNEL=stack

+ 0 - 4
app/Transformer/ActivityPub/ProfileTransformer.php

@@ -39,10 +39,6 @@ class ProfileTransformer extends Fractal\TransformerAbstract
             'owner'        => $profile->permalink(),
             'publicKeyPem' => $profile->public_key,
           ],
-          // remove shared inbox support until proper support
-          // 'endpoints' => [
-          //   'sharedInbox' => config('routes.api.sharedInbox'),
-          // ],
           'icon' => [
             'type'      => 'Image',
             'mediaType' => 'image/jpeg',

+ 2 - 4
config/exp.php

@@ -4,7 +4,5 @@ return [
 
 	'lc' => env('EXP_LC', false),
 	'rec' => env('EXP_REC', false),
-	'ns' => env('EXP_NS', false),
-	'loops' => env('EXP_LOOPS', false)
-
-];
+	'loops' => env('EXP_LOOPS', false),
+];

+ 1 - 4
config/instance.php

@@ -10,9 +10,6 @@ return [
 	],
 
 	'discover' => [
-		'loops' => [
-			'enabled' => env('EXP_LOOPS', false),
-		],
 		'tags' => [
 			'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
 		],
@@ -53,4 +50,4 @@ return [
 		'enabled' => env('RESTRICTED_INSTANCE', false),
 		'level' => 1
 	]
-];
+];

+ 1 - 9
config/media.php

@@ -3,13 +3,5 @@
 return [
 	'exif' => [
 		'database' => env('MEDIA_EXIF_DATABASE', false),
-		'strip' => true
 	],
-	'types' => env('MEDIA_TYPES', 'image/jpeg,image/png,image/gif'),
-	'photo' => [
-		'optimize' => env('PF_OPTIMIZE_IMAGES', true),
-		'quality' => (int) env('IMAGE_QUALITY', 80),
-		'max_size' => env('MAX_PHOTO_SIZE', 15000),
-		'max_album_length' => env('MAX_ALBUM_LENGTH', 4),
-	],
-];
+];

+ 0 - 17
config/pixelfed.php

@@ -58,17 +58,6 @@ return [
     */
     'open_registration' => env('OPEN_REGISTRATION', true),
 
-    /*
-    |--------------------------------------------------------------------------
-    | ActivityPub
-    |--------------------------------------------------------------------------
-    |
-    */
-    'activitypub_enabled' => env('ACTIVITY_PUB', false),
-    'ap_delivery_timeout' => env('ACTIVITYPUB_DELIVERY_TIMEOUT', 2.0),
-    'ap_delivery_concurrency' => env('ACTIVITYPUB_DELIVERY_CONCURRENCY', 10),
-    'remote_follow_enabled' => false,
-
     /*
     |--------------------------------------------------------------------------
     | Account file size limit
@@ -257,13 +246,7 @@ return [
 
     'oauth_enabled' => env('OAUTH_ENABLED', false),
 
-    'sanitizer' => [
-        'restrict_html_types' => env('RESTRICT_HTML_TYPES', true)
-    ],
-
     'admin' => [
         'env_editor' => env('ADMIN_ENV_EDITOR', false)
     ],
-
-    'links_per_post' => env('MAX_LINKS_PER_POST', 0) 
 ];

+ 0 - 8
config/routes.php

@@ -1,16 +1,8 @@
 <?php
 
 return [
-
-    'api' => [
-      'base'        => config('app.url').'/api/1/',
-      'sharedInbox' => config('app.url').'/api/sharedInbox',
-      'search'      => config('app.url').env('MIX_API_SEARCH'),
-    ],
-
     'hashtag' => [
       'base'   => config('app.url').'/discover/tags/',
       'search' => config('app.url').'/discover/tags/',
     ],
-
 ];

+ 2 - 5
resources/assets/sass/custom.scss

@@ -46,9 +46,6 @@ body, button, input, textarea {
   opacity: .4;
 }
 
-.card.status-container {
-}
-
 .card-img-top {
   height: auto;
 }
@@ -528,7 +525,7 @@ details summary::-webkit-details-marker {
 
 .text-lighter {
   color:#B8C2CC !important;
-} 
+}
 
 .btn-outline-lighter {
     color: #B8C2CC !important;
@@ -565,4 +562,4 @@ details summary::-webkit-details-marker {
 
 .status-content > p:first-child {
     display: inline;
-}
+}

+ 4 - 4
resources/assets/sass/moment.scss

@@ -1,4 +1,4 @@
-/* 
+/*
 	red
 */
 .bg-moment-passion {
@@ -7,7 +7,7 @@
 	background: linear-gradient(to left, #e35d5b, #e53935);
 }
 
-/* 
+/*
 	teal/purple
 */
 .bg-moment-azure {
@@ -79,7 +79,7 @@
 	background: linear-gradient(to left, #734b6d, #42275a);
 }
 
-/* 
+/*
 	purple
 */
 .bg-moment-argon {
@@ -95,4 +95,4 @@
 	background: #141E30;
 	background: -webkit-linear-gradient(to left, #243B55, #141E30);
 	background: linear-gradient(to left, #243B55, #141E30);
-}
+}