Fix: invalid originator setting for SpaceUnArchived activity

This commit is contained in:
buddh4 2018-07-19 22:22:55 +02:00
parent d482005d7a
commit 6812b49620

View File

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