mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-11-01 09:09:51 +00:00
Adding relative user id to public_comments. If not specified, use current user.
This commit is contained in:
parent
8f98ef37b4
commit
d7f565ea1c
2 changed files with 3 additions and 2 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
|
|
@ -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 }}",
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue