Commit 96fe25e6ca546d19c49f569aa2be27ae8379694c

Authored by Victor Costa
1 parent 93570321
Exists in production

Fix the return of author

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
www/js/controllers.js
... ... @@ -73,7 +73,7 @@ angular.module('confjuvapp.controllers', [])
73 73 $scope.loadSingleProposal = function(pid) {
74 74 $scope.loading = true;
75 75  
76   - var params = '?private_token=' + $scope.token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal';
  76 + var params = '?private_token=' + $scope.token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal';
77 77  
78 78 var path = 'articles/' + pid + params;
79 79  
... ... @@ -468,7 +468,7 @@ angular.module('confjuvapp.controllers', [])
468 468 perPage = 11;
469 469 }
470 470  
471   - var params = '?t=' + (new Date().getTime()) + '&private_token=' + token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count,author.id&content_type=ProposalsDiscussionPlugin::Proposal&per_page=' + perPage + '&oldest=younger_than&reference_id=' + topic.lastProposalId + $scope.proposalsFilter;
  471 + var params = '?t=' + (new Date().getTime()) + '&private_token=' + token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author,votes_count,comments_count,followers_count,author&content_type=ProposalsDiscussionPlugin::Proposal&per_page=' + perPage + '&oldest=younger_than&reference_id=' + topic.lastProposalId + $scope.proposalsFilter;
472 472  
473 473 if ($scope.hasOwnProperty('proposalFilters')) {
474 474 for (var filter in $scope.proposalFilters) {
... ... @@ -1209,7 +1209,7 @@ angular.module('confjuvapp.controllers', [])
1209 1209 timeout: defaultTimeout
1210 1210 };
1211 1211  
1212   - $http.get(ConfJuvAppUtils.pathTo('/articles/voted_by_me?fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count&private_token=' + $scope.token + '&_=' + new Date().getTime()), config)
  1212 + $http.get(ConfJuvAppUtils.pathTo('/articles/voted_by_me?fields=title,image,body,abstract,id,tag_list,categories,created_by,author,votes_count,comments_count,followers_count&private_token=' + $scope.token + '&_=' + new Date().getTime()), config)
1213 1213 .then(function(resp) {
1214 1214 $scope.voted = [];
1215 1215 $scope.votedIds = [];
... ... @@ -1285,7 +1285,7 @@ angular.module('confjuvapp.controllers', [])
1285 1285 timeout: defaultTimeout
1286 1286 };
1287 1287  
1288   - $http.get(ConfJuvAppUtils.pathTo('/articles/followed_by_me?fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count&private_token=' + $scope.token + '&_=' + new Date().getTime()), config)
  1288 + $http.get(ConfJuvAppUtils.pathTo('/articles/followed_by_me?fields=title,image,body,abstract,id,tag_list,categories,created_by,author,votes_count,comments_count,followers_count&private_token=' + $scope.token + '&_=' + new Date().getTime()), config)
1289 1289 .then(function(resp) {
1290 1290 $scope.following = [];
1291 1291 $scope.followingIds = [];
... ... @@ -1561,7 +1561,7 @@ angular.module('confjuvapp.controllers', [])
1561 1561 timeout: defaultTimeout
1562 1562 };
1563 1563  
1564   - var path = 'articles?private_token=' + $scope.token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal&_=' + (new Date().getTime()) + '&author_id=' + $scope.profile.id + '&parent_id[]=';
  1564 + var path = 'articles?private_token=' + $scope.token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal&_=' + (new Date().getTime()) + '&author_id=' + $scope.profile.id + '&parent_id[]=';
1565 1565  
1566 1566 for (var i = 0; i < $scope.topics.length; i++) {
1567 1567 path += '&parent_id[]=' + $scope.topics[i].id;
... ...