Use userid as key in filtered list to allow isset() checks
Correctly initialise $user
Fix order of arguments in array_chunk()
Fix some small failures in the template
Prepare code layout and loops for email settings
Fix getSourcePathAndOwner() for reshares
Remove message and priority from consumer.php