fedimbed: fix cw check try 3
This commit is contained in:
		
							parent
							
								
									d832c693cc
								
							
						
					
					
						commit
						4b6ebea322
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -261,7 +261,7 @@ async function processUrl(msg, url) {
 | 
			
		|||
 | 
			
		||||
  let desc = "";
 | 
			
		||||
  let MAX_LENGTH = 3999;
 | 
			
		||||
  if (cw != "" && (images.length == 0 || videos.length == 0)) {
 | 
			
		||||
  if (cw != "" && (images.length == 0 && videos.length == 0 && audios.length == 0)) {
 | 
			
		||||
    desc += "\u26a0 " + cw + "\n\n||" + content + "||";
 | 
			
		||||
    MAX_LENGTH -= 8 - cw.length;
 | 
			
		||||
  } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue