SimpleMachines/SMF2.1 — pull request #2426 by MissAllSunday (2014-10-13 00:41:42+00:00)
Title: Pass the entire likes object

While I was working on using the alerts system for my mod, I realize that both the callback and the integrate_issue_like hook doesn't really passes all the info a mod can use.

For example, I'm implementing the likes system for Breeze and I also want to integrate an alert for that, the current hook passes the following info:

$this->_type, $this->_content, $this->_numLikes, empty($this->_alreadyLiked

Which is not enough info to create an alert, a mod will def gonna need the ID of the user who liked the content as well as the "can_like" and "can_see" info since it will be futile to tell an user that somebody else liked something that the user cannot see.

Yes, I know passing an object is somehow "tabu"... still, its either this or passing a huge amount of arguments.

Signed-off-by: Suki