Skip to content

Commit 9b1bb9c

Browse files
committed
fix: remove a repair flow on share-interact(comment fix)
1 parent e1ff361 commit 9b1bb9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

model/permission/permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ func repairShareInteractPermissions(db prefixer.Prefixer, sharingID string, perm
392392
p := &perms[i]
393393
if p.ID() == canonicalID {
394394
hasCanonical = true
395-
// If the canonical doc is expired, update that doc ID but rebuild its content from non-expired docs.
395+
// Keep the canonical doc revision and then overwrite the document with content rebuilt from non-expired docs.
396396
merged.SetRev(p.Rev())
397397
} else {
398398
duplicates = append(duplicates, p)

0 commit comments

Comments
 (0)