Skip to content

Commit

Permalink
Make import merge the tag lists by default (when not overwriting), sh…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-w committed Oct 3, 2023
1 parent ea3cda5 commit ebe8228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/netscape/NetscapeBookmarkUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ public function import($post, UploadedFileInterface $file)
if ($existingLink !== false) {
if ($overwrite === false) {
// Do not overwrite an existing link
$link->setTags( array_unique (
array_merge( $link->getTags(), $bkm['tags'] ) ) );
$skipCount++;
continue;
}

$link->setUpdated(new DateTime());
$overwriteCount++;
} else {
Expand Down

0 comments on commit ebe8228

Please sign in to comment.