forked from GNUsocial/gnu-social
fcdd061b4f
The code is now more event-driven when it comes to rendering notices and their related HTML elements, since we can't have direct calls from core to a plugin. lib/activitymover.php has a function to move a Favorite activity which will not happen now. The move must be pluginified and performed as an event which plugins can catch on to.
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
Events that come with the Favorite plugin
|
|
=========================================
|
|
|
|
StartFavorNotice: Saving a notice as a favorite
|
|
- $profile: profile of the person faving (can be remote!)
|
|
- $notice: notice being faved
|
|
- &$fave: Favor object; null to start off with, but feel free to override.
|
|
|
|
EndFavorNotice: After saving a notice as a favorite
|
|
- $profile: profile of the person faving (can be remote!)
|
|
- $notice: notice being faved
|
|
|
|
StartDisfavorNotice: Saving a notice as a favorite
|
|
- $profile: profile of the person faving (can be remote!)
|
|
- $notice: notice being faved
|
|
- &$result: result of the disfavoring (if you override)
|
|
|
|
EndDisfavorNotice: After saving a notice as a favorite
|
|
- $profile: profile of the person faving (can be remote!)
|
|
- $notice: notice being faved
|
|
|
|
StartFavorNoticeForm: starting the data in the form for favoring a notice
|
|
- $FavorForm: the favor form being shown
|
|
- $notice: notice being favored
|
|
|
|
EndFavorNoticeForm: Ending the data in the form for favoring a notice
|
|
- $FavorForm: the favor form being shown
|
|
- $notice: notice being favored
|
|
|
|
StartDisFavorNoticeForm: starting the data in the form for disfavoring a notice
|
|
- $DisfavorForm: the disfavor form being shown
|
|
- $notice: notice being difavored
|
|
|
|
EndDisFavorNoticeForm: Ending the data in the form for disfavoring a notice
|
|
- $DisfavorForm: the disfavor form being shown
|
|
- $notice: notice being disfavored
|
|
|
|
StartShowFaveForm: just before showing the fave form
|
|
- $item: the NoticeListItem object being shown
|
|
|
|
EndShowFaveForm: just after showing the fave form
|
|
- $item: the NoticeListItem object being shown
|
|
|