Superfluous email notification for foodsharepoint wall
Summary
Whenever someone posts some to a wall of a fairshare point, they get informed via email. That should happen only for posts of other people, not for ones own posts.
Steps to reproduce
Follow a fairshairpoint under Bezirk ->Fair-Teiler, choose email as notification method, post something to its wall and you get an email.
What is the current bug behavior?
There is an email sent to all followers including the post author.
What is the expected correct behavior?
There should be sent an email to all followers except the post author.
Possible fixes
The function newFoodSharePointPost() in Services/NotificationService.php uses getEmailFollower() in Modules/FoodSharePoint/FoodSharePointGateway.php for listing the email recipients. It could be fixed by implementing a behavior like in notifyFollowersNewPost() in Services/ForumService.php which uses getThreadFollower() from Modules/Region/ForumFollowerGateway.php to list all mail recipients but the post author.