Skip to content

Commit

Permalink
Don't show unmonitoring of other users in timeline
Browse files Browse the repository at this point in the history
Fixes #22933
  • Loading branch information
atrol committed Jun 1, 2017
1 parent 3bea72a commit a864b24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/timeline_api.php
Expand Up @@ -79,7 +79,11 @@ function timeline_events( $p_start_time, $p_end_time, $p_max_events, $p_filter =
}
break;
case BUG_UNMONITOR:
$t_event = new IssueMonitorTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, false );
# Skip removing other users from monitoring list, only add unmonitor events where removed
# user is the same as the logged in user.
if( (int)$t_history_event['old_value'] == (int)$t_history_event['userid'] ) {
$t_event = new IssueMonitorTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, false );
}
break;
case TAG_ATTACHED:
$t_event = new IssueTagTimelineEvent( $t_timestamp, $t_user_id, $t_issue_id, $t_history_event['old_value'], true );
Expand Down

0 comments on commit a864b24

Please sign in to comment.