Commit 318967386e6f99b0debb2e3a9076bae3502e65fc

Authored by Victor Costa
1 parent 450d03f9

Fix random proposal

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
js/main.js
... ... @@ -126,7 +126,7 @@ $.getJSON(noosferoAPI)
126 126 });
127 127  
128 128 function loadRandomProposal(topic_id, private_token) {
129   - var url = host + '/api/v1/articles/' + topic_id + '/children' + '?private_token=' + private_token + '&limit=1&order=random()&_='+new Date().getTime()+'&fields=id,name,created_by';
  129 + var url = host + '/api/v1/articles/' + topic_id + '/children' + '?private_token=' + private_token + '&limit=1&order=random()&_='+new Date().getTime()+'&fields=id,name,abstract,created_by';
130 130 $.getJSON(url).done(function( data ) {
131 131 if(data.articles.length == 0) return;
132 132 var article = data.articles[0];
... ...