@akumbhare Best bet is to have a client-side file loaded that listens for the action:ajaxify.end hook.
$(window).on('action:ajaxify.end', function(ev, data) { var url = data.url; });Making ban history public
-
Hello,
Is there a way to create a plugin to make the ban history public? I can move the ban history panel to the user profile page, but since the API doesn't give that information on the profile page it doesn't show any bans. I don't really know if there's a way to modify the API with plugins. -
@v_risalab You can use the hook
filter:account/profile.build
to add data to the page.
https://github.com/NodeBB/NodeBB/blob/master/src/middleware/render.js#L36You can use the same code from the info controller to get the ban data.
https://github.com/NodeBB/NodeBB/blob/master/src/controllers/accounts/info.js#L22