mirror of
				https://github.com/monkeytypegame/monkeytype.git
				synced 2025-11-01 03:39:15 +08:00 
			
		
		
		
	disabled pbs for quote mode
This commit is contained in:
		
							parent
							
								
									b043a7e164
								
							
						
					
					
						commit
						08a45e5425
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -409,6 +409,9 @@ exports.checkNameAvailability = functions.https.onRequest( | |||
| 
 | ||||
| function checkIfPB(uid, obj, userdata) { | ||||
|   let pbs = null; | ||||
|   if (obj.mode == "quote") { | ||||
|     return false; | ||||
|   } | ||||
|   if (obj.funbox !== "none") { | ||||
|     return false; | ||||
|   } | ||||
|  | @ -543,6 +546,9 @@ async function checkIfTagPB(uid, obj, userdata) { | |||
|   if (obj.tags.length === 0) { | ||||
|     return []; | ||||
|   } | ||||
|   if (obj.mode == "quote") { | ||||
|     return []; | ||||
|   } | ||||
|   let dbtags = []; | ||||
|   let restags = obj.tags; | ||||
|   try { | ||||
|  |  | |||
|  | @ -263,6 +263,7 @@ export async function db_saveLocalPB( | |||
|   raw, | ||||
|   consistency | ||||
| ) { | ||||
|   if(mode == "quote") return; | ||||
|   function cont() { | ||||
|     try { | ||||
|       let found = false; | ||||
|  | @ -367,6 +368,7 @@ export async function db_saveLocalTagPB( | |||
|   raw, | ||||
|   consistency | ||||
| ) { | ||||
|   if(mode == "quote") return; | ||||
|   function cont() { | ||||
|     let filteredtag = dbSnapshot.tags.filter((t) => t.id === tagId)[0]; | ||||
|     try { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue