summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-22 08:00:51 +0100
committerGitHub <noreply@github.com>2020-01-22 08:00:51 +0100
commitcd7dad8ff8d374900deab30620944bf3c51faae7 (patch)
tree9d02ba452c0a59b5a56dc74e18a52cc1cd89d823
parentb5c9d53e3e5586cf0edc7b7d7198cd43f3917999 (diff)
parent38eaa636bcca8fcc6bf6cbc9cf90ea986a8374b6 (diff)
downloadnextcloud-server-cd7dad8ff8d374900deab30620944bf3c51faae7.tar.gz
nextcloud-server-cd7dad8ff8d374900deab30620944bf3c51faae7.zip
Merge pull request #19014 from nextcloud/backport/17484/stable17
[stable17] Always use the latest timestamp for merged activities
-rw-r--r--lib/private/Activity/EventMerger.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Activity/EventMerger.php b/lib/private/Activity/EventMerger.php
index ed062d094e5..6b4846164ed 100644
--- a/lib/private/Activity/EventMerger.php
+++ b/lib/private/Activity/EventMerger.php
@@ -111,7 +111,8 @@ class EventMerger implements IEventMerger {
$event->setRichSubject($newSubject, $parameters)
->setParsedSubject($parsedSubject)
- ->setChildEvent($previousEvent);
+ ->setChildEvent($previousEvent)
+ ->setTimestamp(max($event->getTimestamp(), $previousEvent->getTimestamp()));
} catch (\UnexpectedValueException $e) {
return $event;
}