Merge branch 'master' of github.com:humhub/humhub

# Conflicts:
#	protected/humhub/docs/CHANGELOG.md
This commit is contained in:
Lucas Bartholemy 2018-10-04 15:07:34 +02:00
commit 7d3449eefc
2 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,7 @@ HumHub Change Log
- Fix #3313: Unable to deny invitation to private space
- Fix: Added missing `parent::init()` to `humhub\modules\stream\widgets\StreamViewer`
- Fix: Added PHP GD extension to the requirements (docs and selftest)
- Fix: Comment edit triggers new activity
1.3.4 (September 25, 2018)

View File

@ -120,13 +120,15 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
* @param bool $insert
* @param array $changedAttributes
* @return bool
* @throws Exception
*/
public function afterSave($insert, $changedAttributes)
{
$this->flushCache();
// Creating activity
NewComment::instance()->about($this)->save();
if($insert) {
NewComment::instance()->about($this)->create();
}
// Handle mentioned users
// Execute before NewCommentNotification to avoid double notification when mentioned.