Don't add spurious {} to CW posts
This commit is contained in:
		
							parent
							
								
									530ffe6b03
								
							
						
					
					
						commit
						05717b06a7
					
				| 
						 | 
				
			
			@ -95,7 +95,7 @@ pub fn channel_for_posts_page(
 | 
			
		|||
        if item.cws.is_empty() {
 | 
			
		||||
            body_text.push_str(&item.plain_body);
 | 
			
		||||
        } else {
 | 
			
		||||
            body_text.push_str("Sensitive post, body text omitted. Content warnings:{}");
 | 
			
		||||
            body_text.push_str("Sensitive post, body text omitted. Content warnings:");
 | 
			
		||||
            for cw in item.cws {
 | 
			
		||||
                body_text.push_str(&format!(" {},", cw));
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue