human
Solve the following python programming problem given the following code:
def api_pivotal_webhook_v5(request, user_profile, stream) : 
    payload = ujson.loads (request.body) 
    event_type = payload ['kind'] 
    project_name = payload ['project'] ['name'] 
    project_id = payload ['project'] ['id'] 
    primary_resources = payload ['primary_resources'] [0] 
    story_url = primary_resources ['url'] 
    story_type = primary_resources ['story_type'] 
    story_id = primary_resources ['id'] 
    story_name = primary_resources ['name'] 
    performed_by = payload.get ('performed_by', { 
        
}).get ('name', '') 
    story_info = ('[%s](https://www.pivotaltracker.com/s/projects/%s): [%s](%s)' % (project_name, project_id, story_name, story_url)) 
    changes = payload.get ('changes', []) 
    content = '' 
    subject = ('#%s: %s' % (story_id, story_name)) 
    def extract_comment(change) : 
        if (change.get ('kind') == 'comment') : 
            return change.get ('new_values', { 
                
}).get ('text', None) 
return None 
if (event_type == 'story_update_activity') : 
        content += ('%s updated %s:
' % (performed_by, story_info)) 
        for change in changes : 
            old_values = change.get ('original_values', { 
                
}) 
            new_values = change ['new_values'] 
            if (('current_state' in old_values) and ('current_state' in new_values)) : 
                content += ('* state changed from **%s** to **%s**
' % (old_values ['current_state'], new_values ['current_state'])) 
if (('estimate' in old_values) and ('estimate' in new_values)) : 
                old_estimate = old_values.get ('estimate', None) 
                if (old_estimate is None) : 
                    estimate = 'is now' 
else : 
                    estimate = ('changed from %s to' % (old_estimate,)) 
new_estimate = (new_values ['estimate'] if (new_values ['estimate'] is not None) else '0') 
                content += ('* estimate %s **%s points**
' % (estimate, new_estimate)) 
if (('story_type' in old_values) and ('story_type' in new_values)) : 
           ...

    
    

    Fix the buggy line: content += ('%s added a comment to %s:
~~~quote
%s
~~~' % (performed_by, story_info, story_name))
assistant
#Here is Python code to fix the buggy line: content += ('%s added a comment to %s:
.

content += ('%s added a comment to %s:
~~~quote
%s
~~~' % (performed_by, story_info, comment))