@receiver(thread_voted)
@receiver(thread_created)
@receiver(comment_voted)
@receiver(comment_created)
def post_create_vote_handler(sender, **kwargs):
 handle_activity(kwargs['user'], kwargs['post'])

@ receiver ( thread_voted ) @ receiver ( thread_created ) @ receiver ( comment_voted ) @ receiver ( comment_created ) def post_create_vote_handler ( sender , ** kwargs ) : handle_activity ( kwargs [ 'user' ] , kwargs [ 'post' ] )
update the users last activity date upon creating or voting for a post .