mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:17:02 +02:00
fixed listener memleak causing new posts to appear duplicated
This commit is contained in:
@@ -44,7 +44,7 @@ jQuery('document').ready(function() {
|
||||
});
|
||||
|
||||
|
||||
ajaxify.register_events(['event:rep_up', 'event:rep_down']);
|
||||
ajaxify.register_events(['event:rep_up', 'event:rep_down', 'event:new_post']);
|
||||
|
||||
socket.on('event:rep_up', function(data) {
|
||||
adjust_rep(1, data.pid, data.uid);
|
||||
|
||||
Reference in New Issue
Block a user