Adding relative user id to public_comments. If not specified, use current user.

This commit is contained in:
Samuel Clay 2012-06-29 23:14:02 -07:00
parent 8f98ef37b4
commit d7f565ea1c
2 changed files with 3 additions and 2 deletions

View file

@ -9,13 +9,13 @@ NEWSBLUR.Views.SocialPageComments = Backbone.View.extend({
},
load_public_story_comments: function() {
$.get('/social/public_comments', {
story_id: this.options.story_id,
feed_id: this.options.feed_id,
user_id: NEWSBLUR.Globals.blurblog_user_id,
format: "html"
}, _.bind(function(template) {
var $template = $(template);
var $template = $($.trim(template));
var $header = this.make('div', {
"class": 'NB-story-comments-public-header-wrapper'
}, this.make('div', {

View file

@ -28,6 +28,7 @@
'secret_token' : "{{ user.profile.secret_token }}",
'username' : "{{ user.username|safe }}",
'user_id' : "{{ user.pk|safe }}",
'blurblog_user_id' : "{{ social_profile.user_id|safe }}",
'email' : "{{ user.email|safe }}",
'MEDIA_URL' : "{{ MEDIA_URL }}",
};