Exclude notifications from banned & deleted users
Summary
Currently, if the user in a notification has been deleted by the owner (or possibly also banned), it will cause an error like below.
Steps to reproduce
Send a notif to yourself from a test user, ban the test user
Platform information
Web, likely platform agnostic
What is the current bug behavior?
Breaks notifs
What is the expected correct behavior?
It should NOT break there - it should skip over the notification anyway,
it should also filter out blocked and banned users on the backend
Delete the notification if ACL fails.
Relevant logs and/or screenshots
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Mark Harding