You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Chore: Make it easier to test publishing notes
This commit is contained in:
		| @@ -857,7 +857,7 @@ export default class BaseApplication { | ||||
| 			// Setting.setValue('sync.10.path', 'https://api.joplincloud.com'); | ||||
| 			// Setting.setValue('sync.10.userContentPath', 'https://joplinusercontent.com'); | ||||
| 			Setting.setValue('sync.10.path', 'http://api.joplincloud.local:22300'); | ||||
| 			Setting.setValue('sync.10.userContentPath', 'http://joplincloud.local:22300'); | ||||
| 			Setting.setValue('sync.10.userContentPath', 'http://joplinusercontent.local:22300'); | ||||
| 		} | ||||
|  | ||||
| 		// For now always disable fuzzy search due to performance issues: | ||||
|   | ||||
| @@ -9,7 +9,8 @@ | ||||
| // If the userContentBaseUrl is an empty string, the baseUrl is returned instead. | ||||
| export default function(userId: string, baseUrl: string, userContentBaseUrl: string) { | ||||
| 	// Special case for development, because it's difficult to get wildcard domains working locally. | ||||
| 	if (userContentBaseUrl === 'http://joplincloud.local:22300') return 'http://joplincloud.local:22300'; | ||||
| 	// if (userContentBaseUrl === 'http://joplincloud.local:22300') return 'http://joplincloud.local:22300'; | ||||
| 	// if (userContentBaseUrl === 'http://joplincloud.local:22300') return 'http://abcd1234.joplinusercontent.local:22300'; | ||||
|  | ||||
| 	if (userContentBaseUrl && baseUrl !== userContentBaseUrl) { | ||||
| 		if (!userId) throw new Error('User ID must be specified'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user