diff --git a/lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee b/lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee index 410c573d08..fa7a8a86b7 100644 --- a/lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee +++ b/lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee @@ -17,10 +17,9 @@ if Backbone? render: -> @template = DiscussionUtil.getTemplate("_profile_thread") - if not @model.has('abbreviatedBody') @abbreviateBody() - params = $.extend(@model.toJSON(),{expanded: @expanded}) + params = $.extend(@model.toJSON(),{expanded: @expanded, permalink: @model.urlFor('retrieve')}) if not @model.get('anonymous') params = $.extend(params, user:{username: @model.username, user_url: @model.user_url}) @$el.html(Mustache.render(@template, params)) diff --git a/lms/templates/discussion/_user_profile.html b/lms/templates/discussion/_user_profile.html index 7bf58a256a..1ab0f2fee7 100644 --- a/lms/templates/discussion/_user_profile.html +++ b/lms/templates/discussion/_user_profile.html @@ -5,7 +5,7 @@
<% - role_names = sorted(map(attrgetter('name'), django_user.roles.all())) + role_names = sorted(set(map(attrgetter('name'), django_user.roles.all()))) %>