fix(backend): renoteIdまたはfileIds(mediaIds)またはpollがnullでない場合に、text  が空白文字のみで構成されたリクエストになることを許可して、結果はtext: null`を返すように
				
					
				
			This commit is contained in:
		@@ -325,6 +325,9 @@ export class NoteCreateService implements OnApplicationShutdown {
 | 
			
		||||
				data.text = data.text.slice(0, DB_MAX_NOTE_TEXT_LENGTH);
 | 
			
		||||
			}
 | 
			
		||||
			data.text = data.text.trim();
 | 
			
		||||
			if (data.text === '') {
 | 
			
		||||
				data.text = null;
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			data.text = null;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -138,7 +138,6 @@ export const paramDef = {
 | 
			
		||||
			minLength: 1,
 | 
			
		||||
			maxLength: MAX_NOTE_TEXT_LENGTH,
 | 
			
		||||
			nullable: true,
 | 
			
		||||
			pattern: '[^\\s]+',
 | 
			
		||||
		},
 | 
			
		||||
		fileIds: {
 | 
			
		||||
			type: 'array',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user