Fix path deduping again

This commit is contained in:
Andras Schmelczer 2025-02-23 14:12:42 +00:00
parent c5075b6bea
commit c5a89f5205
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -169,7 +169,9 @@ async fn internal_update_document(
let is_different_from_request_content = merged_content != content;
// We can only update the relative path if we're the first one to do so
let new_relative_path = if parent_document.relative_path == latest_version.relative_path {
let new_relative_path = if parent_document.relative_path == latest_version.relative_path
&& latest_version.relative_path != sanitized_relative_path
{
get_deduped_file_name(
&state.database,
&vault_id,