Commit 110163fd authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent your own feedback from sending you a notification.

parent 6ea80f3b
......@@ -200,6 +200,10 @@ function handle_activity($activitytype, $data, $cron=false) {
throw new InvalidArgumentException("Couldn't find view with id " . $data->view);
}
$userid = $view->owner;
// Don't send a message if the view owner submitted the feedback
if ($data->author == $userid) {
$userid = null;
}
$data->subject .= ' ' .$view->title;
if (empty($data->url)) {
// @todo this might change later
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment