Skip to content

Commit

Permalink
editing the code mainly in public/src/client/category.js to try and r…
Browse files Browse the repository at this point in the history
…ender post results
  • Loading branch information
zanzoonh committed Oct 3, 2024
1 parent ceff7fd commit ef89581
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
Binary file modified dump.rdb
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/nodebb-theme-harmony/templates/users.tpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions public/src/client/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ define('forum/category', [

function loadPage(query) {
console.log('entered load page');
api.get('/api/topics', query)
api.get('/categories', query)
.then(renderSearchResults)
.catch(alerts.error);
}
Expand Down Expand Up @@ -221,8 +221,8 @@ define('forum/category', [
}

data.isAdminOrGlobalMod = app.user.isAdmin || app.user.isGlobalMod;
app.parseAndTranslate('topics', 'topics', data, function (html) {
$('#users-container').html(html);
app.parseAndTranslate('posts_list', 'topics', data, function (html) {
$('#category-container').html(html);
html.find('.timeago').timeago();
$('[component="topic/search/icon"]').addClass('fa-search').removeClass('fa-spinner fa-spin');
});
Expand Down
1 change: 1 addition & 0 deletions public/src/client/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ define('forum/users', [


function loadPage(query) {
console.log('user load page then api?');
api.get('/api/users', query)
.then(renderSearchResults)
.catch(alerts.error);
Expand Down
2 changes: 2 additions & 0 deletions src/api/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const socketHelpers = require('../socket.io/helpers');

const topicsAPI = module.exports;


console.log('trying ot gr here');
topicsAPI._checkThumbPrivileges = async function ({ tid, uid }) {
// req.params.tid could be either a tid (pushing a new thumb to an existing topic)
// or a post UUID (a new topic being composed)
Expand Down

0 comments on commit ef89581

Please sign in to comment.