fix ~jobs
This commit is contained in:
		
							parent
							
								
									eca7e8df0d
								
							
						
					
					
						commit
						accf5212b2
					
				@ -202,7 +202,7 @@ const HIDE_NSFW_CLAUSE = '("Sub"."nsfw" = FALSE OR "Sub"."nsfw" IS NULL)'
 | 
			
		||||
 | 
			
		||||
export const nsfwClause = showNsfw => showNsfw ? '' : HIDE_NSFW_CLAUSE
 | 
			
		||||
 | 
			
		||||
const subClause = (sub, num, table, me, showNsfw) => {
 | 
			
		||||
const subClause = (sub, num, table = 'Item', me, showNsfw) => {
 | 
			
		||||
  // Intentionally show nsfw posts (i.e. no nsfw clause) when viewing a specific nsfw sub
 | 
			
		||||
  if (sub) {
 | 
			
		||||
    const tables = [...new Set(['Item', table])].map(t => `"${t}".`)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user