Favorite plugin now "extends" Activity on NoticeAsActivity
Got this mainly from my patches to FreeSocial. The idea is to migrate also the Note activity to a plugin and have everything be handled as events, only filling out the basic "context" stuff in the Notice class.
This commit is contained in:
@@ -243,7 +243,7 @@ class EventPlugin extends MicroAppPlugin
|
||||
*
|
||||
* @return ActivityObject
|
||||
*/
|
||||
function onEndNoticeAsActivity(Notice $stored, Activity $act, Profile $scoped=null) {
|
||||
protected function extendActivity(Notice $stored, Activity $act, Profile $scoped=null) {
|
||||
switch ($stored->object_type) {
|
||||
case RSVP::POSITIVE:
|
||||
case RSVP::NEGATIVE:
|
||||
|
Reference in New Issue
Block a user