mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix systemtags event with numeric user ids
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
011dab246d
commit
aeb7503feb
1 changed files with 2 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class Listener {
|
|||
/** @var Node $node */
|
||||
$node = array_shift($nodes);
|
||||
$al = $this->shareHelper->getPathsForAccessList($node);
|
||||
$users = array_merge($users, $al['users']);
|
||||
$users += $al['users'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -203,6 +203,7 @@ class Listener {
|
|||
->setObject($event->getObjectType(), (int) $event->getObjectId());
|
||||
|
||||
foreach ($users as $user => $path) {
|
||||
$user = (string)$user; // numerical ids could be ints which are not accepted everywhere
|
||||
$activity->setAffectedUser($user);
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue