Added array_unique to set_tags to prevent primary key violations when upload conflict is set to merge
This commit is contained in:
		
							parent
							
								
									42b39f20d7
								
							
						
					
					
						commit
						99b51e65c1
					
				| @ -570,6 +570,8 @@ class Image | |||||||
|     { |     { | ||||||
|         global $database; |         global $database; | ||||||
| 
 | 
 | ||||||
|  |         $unfiltered_tags = array_unique($unfiltered_tags); | ||||||
|  | 
 | ||||||
|         $tags = []; |         $tags = []; | ||||||
|         foreach ($unfiltered_tags as $tag) { |         foreach ($unfiltered_tags as $tag) { | ||||||
|             if (mb_strlen($tag, 'UTF-8') > 255) { |             if (mb_strlen($tag, 'UTF-8') > 255) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user