nextcloud/lib
Jonas 10034c4d15 fix(node): emit hooks on Node::copy()
When calling `Files\Node\Node::copy()`, `Files\View::copy()` gets called,
but `Files\View::fakeRoot` is empty so the hooks are not emitted if no
path is given to `Files\View::shouldEmitHooks()`.

This results in node-related events like `NodeCopiedEvent` not being
fired when copying files via `Files\Node\Node::copy()`.

`Files\View::shouldEmitHooks()` is given a path as parameter in almost
all places except when called from the `copy()` function. This commit
changes it and passes the copy target path.

Fixes: nextcloud/collectives#1756

Signed-off-by: Jonas <jonas@freesources.org>
2025-05-28 11:49:58 +00:00
..
composer Merge pull request #52988 from nextcloud/backport/50157/stable30 2025-05-27 13:24:15 +02:00
l10n fix(l10n): Update translations from Transifex 2025-05-28 00:22:53 +00:00
private fix(node): emit hooks on Node::copy() 2025-05-28 11:49:58 +00:00
public Merge pull request #52988 from nextcloud/backport/50157/stable30 2025-05-27 13:24:15 +02:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php chore: apply code style 2025-04-30 19:04:59 +02:00
versioncheck.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00