mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-19 18:37:45 +00:00
Associate activity's creator as a participant by default
- Added `addUser` call to automatically include the activity creator as a participant.
This commit is contained in:
@@ -382,6 +382,7 @@ final class ActivityController extends AbstractController
|
||||
|
||||
$entity = new Activity();
|
||||
$entity->setUser($this->security->getUser());
|
||||
$entity->addUser($this->security->getUser());
|
||||
|
||||
if ($person instanceof Person) {
|
||||
$entity->setPerson($person);
|
||||
|
||||
Reference in New Issue
Block a user