[#81628184] User is added as participant when commenting

When you add a comment, if you are not a participant you are added as a participant (assuming you have the permission to comment). Also, your avatar will appear in the list of participants after commenting (thanks event stream!)
Good call. I'll make the change.

On Thu, Dec 4, 2014 at 6:13 PM, Mike Mazur <notifications@github.com>
wrote:

>> @@ -6,6 +6,8 @@ class CommentsController < ApplicationController
>>    rescue_from ActiveRecord::RecordNotFound, with: :render_404
>>  
>>    def create
>> +    add_user_as_participant unless current_user.tasks.include? comment.task
> I wonder whether `unless comment.task.participants.include? current_user` would be better here? It feels more natural to me. Also, `current_user.tasks` could potentially be a large list to go through in the comparison, while `comment.task.participants` would be smaller.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/Tahi-project/tahi/pull/689/files#r21344440