Skip to content

Commit 1e906fd

Browse files
authored
Merge pull request #12868 from nextcloud/backport/12857/stable15
[stable15] Emit write update only once on touch
2 parents f4497bb + 07eb6e5 commit 1e906fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ private function basicOperation($operation, $path, $hooks = [], $extraParam = nu
11571157
if ($result && in_array('delete', $hooks) and $result) {
11581158
$this->removeUpdate($storage, $internalPath);
11591159
}
1160-
if ($result && in_array('write', $hooks) and $operation !== 'fopen') {
1160+
if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
11611161
$this->writeUpdate($storage, $internalPath);
11621162
}
11631163
if ($result && in_array('touch', $hooks)) {

0 commit comments

Comments
 (0)