From 9d6aeba37674012ee4e9224cc46c8dcd7b137282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 25 Aug 2023 20:30:25 -0400 Subject: [PATCH] pass in privileges to event parsing so delete button shows up --- public/src/client/topic/posts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index dc2ad4ae30..6653941d64 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -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') {