avoid PHP notice
add activity object as param to filter
Merge pull request #1 from christianwach/minor-fixes

Hook emhancement and minor fixes