Merge pull request #19871 from nextcloud/bugfix/14469/combine-move-activities

Combine move activities as well
pull/19173/head
Roeland Jago Douma 5 years ago committed by GitHub
commit 812f16880b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      apps/files/lib/Activity/Provider.php

@ -246,7 +246,11 @@ class Provider implements IProvider {
$this->setSubjects($event, $subject, $parsedParameters);
$event = $this->eventMerger->mergeEvents('file', $event, $previousEvent);
if ($event->getSubject() === 'moved_self' || $event->getSubject() === 'moved_by') {
$event = $this->eventMerger->mergeEvents('oldfile', $event, $previousEvent);
} else {
$event = $this->eventMerger->mergeEvents('file', $event, $previousEvent);
}
if ($event->getChildEvent() === null) {
// Couldn't group by file, maybe we can group by user

Loading…
Cancel
Save