mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-26 19:26:05 +02:00
fix(topic-events): repeated invocations of Posts.addTopicEvents caused dupes to be added to DOM
This commit is contained in:
@@ -126,6 +126,6 @@ Events.log = async (tid, payload) => {
|
||||
events: [payload],
|
||||
});
|
||||
|
||||
({ events } = plugins.hooks.fire('filter:topic.events.log', { events }));
|
||||
({ events } = await plugins.hooks.fire('filter:topic.events.log', { events }));
|
||||
return events;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user