Fix: space archive activity wrong originator assignment

This commit is contained in:
buddh4 2018-07-19 22:20:31 +02:00
parent 1e92dca18b
commit d482005d7a
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ HumHub Change Log
- Fix: prevent user serialization for SocialActivity
- Fix: wrong return value for `Content::move()`
- Fix: space archive activity wrong originator assignment
1.3.0-beta.2 (July 18, 2018)
-----------------------------

View File

@ -88,7 +88,7 @@ class DefaultController extends Controller
$space->archive();
// Create Activity when the space in archieved
SpaceArchieved::instance()->from($space)->about($space->owner)->save();
SpaceArchieved::instance()->from(Yii::$app->user->getIdentity())->about($space->owner)->save();
if (Yii::$app->request->isAjax) {
Yii::$app->response->format = 'json';