mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
pass in privileges to event parsing so delete button shows up
This commit is contained in:
@@ -301,7 +301,10 @@ define('forum/topic/posts', [
|
||||
}
|
||||
|
||||
const translated = await Promise.all(
|
||||
events.map(event => app.parseAndTranslate('partials/topic/event', event))
|
||||
events.map(event => app.parseAndTranslate(
|
||||
'partials/topic/event',
|
||||
{ ...event, privileges: ajaxify.data.privileges }
|
||||
))
|
||||
);
|
||||
|
||||
if (config.topicPostSort === 'oldest_to_newest') {
|
||||
|
||||
Reference in New Issue
Block a user