ajaxify.variables.get deprecated

NodeBB Development

Suggested Topics


  • 2 Votes
    5 Posts
    1k Views

    We have received reports that after upgrading to v1.16.0, the amount of websocket connections is very high relative to pre-upgrade

    This is due to older socket.io clients (running on version 2) attempting to connect to the new socket.io 3. These protocols are incompatible, and so the connection is rejected, and NodeBB was configured to try indefinitely.

    This is ok. Over time, as your users close their browser windows (or refresh), they will automatically start using the latest version, and socket usage will return to normal levels.

    If you are worried about the excessive traffic, you can configure a nginx condition to drop requests with the query string ?EIO=3. Please see the issue linked above for more information.

  • 2 Votes
    4 Posts
    4k Views

    Just an update to those following this post, that NodeBB v1.6.0 has entered the feature freeze portion of the launch as of 31st of August 2017

    Code Freeze is schedued for this Thursday (7th of September), with a launch a week later, on the 14th of September.

    🎉

  • 0 Votes
    3 Posts
    2k Views

    Those userrs are stored in groups with special names, here are the names assuming the category id is 1.

    cid:1:privileges:find
    cid:1:privileges:read
    cid:1:privileges:topics:create
    cid:1:privileges:topics:reply

    You can get the user ids from these groups by.

    Groups.getMembers('cid:1:privileges:find', 0, -1, callback); This will give you all the user ids that have the find permission for category 1.

    If you want to get their basic info like username picture slug so you can show user icons you can just use Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);

  • 0 Votes
    2 Posts
    970 Views

    @a_5mith With an AJAX request to yourdomain.com/api/topic/tid the topic address will be avaible you just need to pass a new request to yourdomain/api/topic/{data} and you'll have all the information you need.

  • Template variables

    NodeBB Development
    0 Votes
    2 Posts
    1k Views

    src/routes/api.js is where you want to look at. res.json({}) is where you inject variables.