Browse Source

Merge pull request #2041 from pixelfed/staging

Staging
daniel 5 years ago
parent
commit
79c17381d1

+ 0 - 1
.env.example

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

+ 0 - 1
.env.example.docker

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

+ 0 - 1
.env.testing

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

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

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

+ 2 - 4
config/exp.php

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

+ 1 - 0
config/filesystems.php

@@ -63,6 +63,7 @@ return [
             'bucket'   => env('AWS_BUCKET'),
             'bucket'   => env('AWS_BUCKET'),
             'url'      => env('AWS_URL'),
             'url'      => env('AWS_URL'),
             'endpoint' => env('AWS_ENDPOINT'),
             'endpoint' => env('AWS_ENDPOINT'),
+            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
         ],
         ],
 
 
         'spaces' => [
         'spaces' => [

+ 1 - 4
config/instance.php

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

+ 1 - 9
config/media.php

@@ -3,13 +3,5 @@
 return [
 return [
 	'exif' => [
 	'exif' => [
 		'database' => env('MEDIA_EXIF_DATABASE', false),
 		'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),
-	],
-];
+];

+ 1 - 18
config/pixelfed.php

@@ -34,7 +34,7 @@ return [
     |
     |
     */
     */
     'nodeinfo' => [
     'nodeinfo' => [
-      'url' => config('app.url').'/'.'api/nodeinfo/2.0.json',
+      'url' => config('app.url').'/api/nodeinfo/2.0.json',
     ],
     ],
 
 
     /*
     /*
@@ -58,17 +58,6 @@ return [
     */
     */
     'open_registration' => env('OPEN_REGISTRATION', true),
     '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
     | Account file size limit
@@ -257,13 +246,7 @@ return [
 
 
     'oauth_enabled' => env('OAUTH_ENABLED', false),
     'oauth_enabled' => env('OAUTH_ENABLED', false),
 
 
-    'sanitizer' => [
-        'restrict_html_types' => env('RESTRICT_HTML_TYPES', true)
-    ],
-
     'admin' => [
     'admin' => [
         'env_editor' => env('ADMIN_ENV_EDITOR', false)
         '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
 <?php
 
 
 return [
 return [
-
-    'api' => [
-      'base'        => config('app.url').'/api/1/',
-      'sharedInbox' => config('app.url').'/api/sharedInbox',
-      'search'      => config('app.url').env('MIX_API_SEARCH'),
-    ],
-
     'hashtag' => [
     'hashtag' => [
       'base'   => config('app.url').'/discover/tags/',
       'base'   => config('app.url').'/discover/tags/',
       'search' => config('app.url').'/discover/tags/',
       'search' => config('app.url').'/discover/tags/',
     ],
     ],
-
 ];
 ];

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

@@ -46,9 +46,6 @@ body, button, input, textarea {
   opacity: .4;
   opacity: .4;
 }
 }
 
 
-.card.status-container {
-}
-
 .card-img-top {
 .card-img-top {
   height: auto;
   height: auto;
 }
 }
@@ -240,7 +237,6 @@ body, button, input, textarea {
  100% {
  100% {
   transform:rotate(1turn);
   transform:rotate(1turn);
   top: 2.5rem;
   top: 2.5rem;
-  left: 0em;
   font-size:0;
   font-size:0;
   left: 0.9rem
   left: 0.9rem
  }
  }
@@ -528,7 +524,7 @@ details summary::-webkit-details-marker {
 
 
 .text-lighter {
 .text-lighter {
   color:#B8C2CC !important;
   color:#B8C2CC !important;
-} 
+}
 
 
 .btn-outline-lighter {
 .btn-outline-lighter {
     color: #B8C2CC !important;
     color: #B8C2CC !important;
@@ -565,4 +561,4 @@ details summary::-webkit-details-marker {
 
 
 .status-content > p:first-child {
 .status-content > p:first-child {
     display: inline;
     display: inline;
-}
+}

+ 1 - 3
resources/assets/sass/landing/carousel.scss

@@ -77,9 +77,7 @@
 #iosDevice img {
 #iosDevice img {
   position:absolute;
   position:absolute;
   left:0;
   left:0;
-}
 
 
-#iosDevice img {
   -webkit-animation-name: iosDeviceCarousel;
   -webkit-animation-name: iosDeviceCarousel;
   -webkit-animation-timing-function: ease-in-out;
   -webkit-animation-timing-function: ease-in-out;
   -webkit-animation-iteration-count: infinite;
   -webkit-animation-iteration-count: infinite;
@@ -123,4 +121,4 @@
   -moz-animation-delay: 0;
   -moz-animation-delay: 0;
   -o-animation-delay: 0;
   -o-animation-delay: 0;
   animation-delay: 0;
   animation-delay: 0;
-}
+}

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

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

+ 1 - 1
resources/lang/ca/passwords.php

@@ -11,7 +11,7 @@ return [
     |
     |
     */
     */
     'password' => 'Cal que la contrasenya sigui d\'un mínim de sis caràcters i que coincideixi amb la confirmació.',
     'password' => 'Cal que la contrasenya sigui d\'un mínim de sis caràcters i que coincideixi amb la confirmació.',
-    'reset'    => 'S'ha reinicialitzat la vostra contrasenya!',
+    'reset'    => 'S\'ha reinicialitzat la vostra contrasenya!',
     'sent'     => 'Si la vostra adreça electrònica existeix a la nostra base de dades, en breus minuts rebreu un enllaç de recuperació a la vostra bústia. Si us plau, si no rebeu el missatge, comproveu la bústia de correu brossa.',
     'sent'     => 'Si la vostra adreça electrònica existeix a la nostra base de dades, en breus minuts rebreu un enllaç de recuperació a la vostra bústia. Si us plau, si no rebeu el missatge, comproveu la bústia de correu brossa.',
     'token'    => 'Aquest testimoni (token) de reinicialització de la contrasenya no és vàlid.',
     'token'    => 'Aquest testimoni (token) de reinicialització de la contrasenya no és vàlid.',
     'user'     => 'Si la vostra adreça electrònica existeix a la nostra base de dades, en breus minuts rebreu un enllaç de recuperació a la vostra bústia. Si us plau, si no rebeu el missatge, comproveu la bústia de correu brossa.',
     'user'     => 'Si la vostra adreça electrònica existeix a la nostra base de dades, en breus minuts rebreu un enllaç de recuperació a la vostra bústia. Si us plau, si no rebeu el missatge, comproveu la bústia de correu brossa.',