[Glitch] Fix attached media uploads not being cleared when replying to a post
Port bae17ebe5e to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		@@ -421,6 +421,8 @@ export default function compose(state = initialState, action) {
 | 
			
		||||
      map.set('preselectDate', new Date());
 | 
			
		||||
      map.set('idempotencyKey', uuid());
 | 
			
		||||
 | 
			
		||||
      map.update('media_attachments', list => list.filter(media => media.get('unattached')));
 | 
			
		||||
 | 
			
		||||
      if (action.status.get('language') && !action.status.has('translation')) {
 | 
			
		||||
        map.set('language', action.status.get('language'));
 | 
			
		||||
      } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user