Forráskód Böngészése

Merge pull request #2638 from pixelfed/staging

Staging
daniel 4 éve
szülő
commit
12c5f74e6b

+ 3 - 0
CHANGELOG.md

@@ -37,6 +37,9 @@
 - Updated DiscoverComponent, allow unathenicated if enabled. ([a1059a6e](https://github.com/pixelfed/pixelfed/commit/a1059a6e))
 - Updated DiscoverComponent, allow unathenicated if enabled. ([a1059a6e](https://github.com/pixelfed/pixelfed/commit/a1059a6e))
 - Updated components, improve content warnings. ([a9e98965](https://github.com/pixelfed/pixelfed/commit/a9e98965))
 - Updated components, improve content warnings. ([a9e98965](https://github.com/pixelfed/pixelfed/commit/a9e98965))
 - Updated ComposeModal, prevent tagging empty users. Fixes #2633. ([ceae664c](https://github.com/pixelfed/pixelfed/commit/ceae664c))
 - Updated ComposeModal, prevent tagging empty users. Fixes #2633. ([ceae664c](https://github.com/pixelfed/pixelfed/commit/ceae664c))
+- Updated ComposeModal, show filter warning for unsupported browsers. ([12ce7602](https://github.com/pixelfed/pixelfed/commit/12ce7602))
+- Updated Hashtag component, fix null infinite loading bug. Fixes #2637. ([55136518](https://github.com/pixelfed/pixelfed/commit/55136518))
+- Updated filesystems config, add backup driver to store backups on other filesystems. ([ae90eef9](https://github.com/pixelfed/pixelfed/commit/ae90eef9))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 
 ## [v0.10.10 (2021-01-28)](https://github.com/pixelfed/pixelfed/compare/v0.10.9...v0.10.10)
 ## [v0.10.10 (2021-01-28)](https://github.com/pixelfed/pixelfed/compare/v0.10.9...v0.10.10)

+ 13 - 0
config/filesystems.php

@@ -81,6 +81,19 @@ return [
             'url' => str_replace(env('DO_SPACES_REGION'),env('DO_SPACES_BUCKET').'.'.env('DO_SPACES_REGION'),str_replace("digitaloceanspaces","cdn.digitaloceanspaces",env('DO_SPACES_ENDPOINT'))),
             'url' => str_replace(env('DO_SPACES_REGION'),env('DO_SPACES_BUCKET').'.'.env('DO_SPACES_REGION'),str_replace("digitaloceanspaces","cdn.digitaloceanspaces",env('DO_SPACES_ENDPOINT'))),
         ],
         ],
 
 
+        'backup' => [
+            'driver' => env('PF_BACKUP_DRIVER', 'local'),
+            'visibility' => 'private',
+            'root' => env('PF_BACKUP_DRIVER', 'local') == 'local' ?
+                storage_path('app/backups/') :
+                env('PF_BACKUP_ROOT','/'),
+            'key' => env('PF_BACKUP_KEY'),
+            'secret' => env('PF_BACKUP_SECRET'),
+            'endpoint' => env('PF_BACKUP_ENDPOINT'),
+            'region' => env('PF_BACKUP_REGION'),
+            'bucket' => env('PF_BACKUP_BUCKET'),
+        ],
+
     ],
     ],
 
 
 ];
 ];

BIN
public/js/compose.js


BIN
public/js/hashtag.js


BIN
public/mix-manifest.json


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

@@ -1131,7 +1131,7 @@ export default {
 			// this is where the magic happens
 			// this is where the magic happens
 			var ua = navigator.userAgent.toLowerCase();
 			var ua = navigator.userAgent.toLowerCase();
 			if(ua.indexOf('firefox') == -1 && ua.indexOf('chrome') == -1) {
 			if(ua.indexOf('firefox') == -1 && ua.indexOf('chrome') == -1) {
-			 	// swal('Oops!', 'Your browser does not support the filter feature. Please use Chrome or Firefox if you want to apply a filter.', 'error');
+			 	swal('Oops!', 'Your browser does not support the filter feature.', 'error');
 			 	return;
 			 	return;
 			}
 			}
 
 

+ 2 - 2
resources/assets/js/components/Hashtag.vue

@@ -168,7 +168,7 @@
 				}).then(res => {
 				}).then(res => {
 					let data = res.data;
 					let data = res.data;
 					let tags = data.tags.filter(n => {
 					let tags = data.tags.filter(n => {
-						if(!n || n.length == 0) {
+						if(!n || n.length == 0 || n.status == null) {
 							return false;
 							return false;
 						}
 						}
 						return true;
 						return true;
@@ -195,7 +195,7 @@
 					let data = res.data;
 					let data = res.data;
 					if(data.tags.length) {
 					if(data.tags.length) {
 						let tags = data.tags.filter(n => {
 						let tags = data.tags.filter(n => {
-							if(!n || n.length == 0) {
+							if(!n || n.length == 0 || n.status == null) {
 								return false;
 								return false;
 							}
 							}
 							return true;
 							return true;

+ 1 - 0
storage/app/.gitignore

@@ -1,4 +1,5 @@
 *
 *
+!backups/
 !public/
 !public/
 !remcache/
 !remcache/
 !cities.json
 !cities.json

+ 2 - 0
storage/app/backups/.gitignore

@@ -0,0 +1,2 @@
+*
+!.gitignore