Skip to content

Commit b0d9f40

Browse files
luka-nextcloudbackportbot[bot]
authored andcommitted
fix: due date events in activity logging
Signed-off-by: Luka Trovic <luka@nextcloud.com>
1 parent 2aa6446 commit b0d9f40

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/Activity/ActivityManager.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ public function triggerUpdateEvents($objectType, ChangeSet $changeSet, $subject)
269269
'after' => $entity->$getter()
270270
];
271271
if ($changes['before'] !== $changes['after']) {
272+
if ($field === 'duedate' && $changes['before']->format('c') === $changes['after']->format('c')) {
273+
continue;
274+
}
272275
try {
273276
$event = $this->createEvent($objectType, $entity, $subjectComplete, $changes, $this->userId);
274277
if ($event !== null) {

0 commit comments

Comments
 (0)