nextcloud/lib
Jonas ed492c5c70 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:50:11 +00:00
..
composer Merge pull request #52987 from nextcloud/backport/50157/stable31 2025-05-26 08:27:43 +02:00
l10n fix(l10n): Update translations from Transifex 2025-05-28 00:22:46 +00:00
private fix(node): emit hooks on Node::copy() 2025-05-28 11:50:11 +00:00
public feat: only load template fields when requested 2025-05-26 18:03:24 +02:00
unstable fix(lexicon): syntax 2025-01-14 10:38:15 -01:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php fix: Move CSRF check from base to PublicAuth for public.php 2025-05-22 08:30:36 +00:00
versioncheck.php feat(PHP): Allow PHP 8.4 2024-11-08 12:59:12 +01:00