Add points to the event arguments for the after reaction save event.

This commit is contained in:
Zachary Doll 2014-12-21 11:55:22 -06:00
parent 51e41cc3d3
commit bb20ebeb03

View File

@ -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;
}