forked from GNUsocial/gnu-social
Buncha cleanup
This commit is contained in:
@@ -92,11 +92,22 @@ $stream->hookEvent('favorite', function($data) {
|
||||
$data['target']['screen_name'],
|
||||
$data['target_object']['text']);
|
||||
});
|
||||
$stream->hookEvent('unfavorite', function($data) {
|
||||
printf("%s unfavorited %s's notice: %s\n",
|
||||
$data['source']['screen_name'],
|
||||
$data['target']['screen_name'],
|
||||
$data['target_object']['text']);
|
||||
});
|
||||
$stream->hookEvent('follow', function($data) {
|
||||
printf("%s friended %s\n",
|
||||
$data['source']['screen_name'],
|
||||
$data['target']['screen_name']);
|
||||
});
|
||||
$stream->hookEvent('unfollow', function($data) {
|
||||
printf("%s unfriended %s\n",
|
||||
$data['source']['screen_name'],
|
||||
$data['target']['screen_name']);
|
||||
});
|
||||
$stream->hookEvent('delete', function($data) {
|
||||
printf("Deleted status notification: %s\n",
|
||||
$data['status']['id']);
|
||||
|
Reference in New Issue
Block a user