Add points to the event arguments for the after reaction save event.
This commit is contained in:
parent
51e41cc3d3
commit
bb20ebeb03
@ -187,6 +187,7 @@ class ReactionModel extends Gdn_Model {
|
||||
$this->SetUserScore($ID, $Type, $UserID, $Score);
|
||||
// Give the user points commesurate with reaction activity
|
||||
UserModel::GivePoints($AuthorID, $Points, 'Reaction');
|
||||
$EventArgs['Points'] = $Points;
|
||||
$this->FireEvent('AfterReactionSave', $EventArgs);
|
||||
return $Reaction;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user