mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Merge branch 'master' of github.com:humhub/humhub
# Conflicts: # protected/humhub/docs/CHANGELOG.md
This commit is contained in:
commit
7d3449eefc
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user