pass in privileges to event parsing so delete button shows up

isekai-main
Barış Soner Uşaklı 1 year ago
parent 4bc21a2e8b
commit 9d6aeba376

@ -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') {

Loading…
Cancel
Save