]> source.dussan.org Git - nextcloud-server.git/commitdiff
Always use the latest timestamp for merged activities 19015/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 9 Oct 2019 09:25:37 +0000 (11:25 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Mon, 20 Jan 2020 13:43:01 +0000 (13:43 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Activity/EventMerger.php

index ed062d094e5b2258f800697749d8daf85bd86424..6b4846164ed6ed6e4fec268aeffccd15013571f3 100644 (file)
@@ -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;
                }