Added array_unique to set_tags to prevent primary key violations when upload conflict is set to merge

This commit is contained in:
matthew 2019-06-01 11:39:03 -05:00
parent 42b39f20d7
commit 99b51e65c1

View file

@ -570,6 +570,8 @@ class Image
{
global $database;
$unfiltered_tags = array_unique($unfiltered_tags);
$tags = [];
foreach ($unfiltered_tags as $tag) {
if (mb_strlen($tag, 'UTF-8') > 255) {