Fix notifications to handle participants and mentions on commits too

This fixes, as noted on latests comments from #3898, the notification for commit notes.