Skip to content

Commit fdfd320

Browse files
authored
Merge pull request #61490 from nextcloud/fix-webhook
fix: webhook payload for system tag events
2 parents 9f654c7 + dde64ea commit fdfd320

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/SystemTag/SystemTagObjectMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ function (ISystemTag $tag) {
302302
#[\Override]
303303
public function setObjectIdsForTag(string $tagId, string $objectType, array $objectIds): void {
304304
$currentObjectIds = $this->getObjectIdsForTags($tagId, $objectType);
305-
$removedObjectIds = array_diff($currentObjectIds, $objectIds);
306-
$addedObjectIds = array_diff($objectIds, $currentObjectIds);
305+
$removedObjectIds = array_values(array_diff($currentObjectIds, $objectIds));
306+
$addedObjectIds = array_values(array_diff($objectIds, $currentObjectIds));
307307

308308
$this->connection->beginTransaction();
309309
$query = $this->connection->getQueryBuilder();

0 commit comments

Comments
 (0)