mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-03 19:14:03 +00:00 
			
		
		
		
	Can send comment images without content
This commit is contained in:
		@@ -58,7 +58,7 @@ export class CommentsController {
 | 
			
		||||
	 * @param need_check True if the comment must have valid content / false else
 | 
			
		||||
	 */
 | 
			
		||||
	private static GetCommentContent(h: RequestHandler, name: string, need_check = true) : string {
 | 
			
		||||
		const content = h.postContent(name);
 | 
			
		||||
		const content = h.postContent(name, need_check ? 3 : 0);
 | 
			
		||||
 | 
			
		||||
		if(need_check && !check_string_before_insert(content))
 | 
			
		||||
			h.error(400, "Please check new comment content!");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user