Node.js based forum software built for the modern web
feat: show links in post queue
Barış Soner Uşaklı500e3342b2a0
diff --git a/install/package.json b/install/package.jsonindex a7de7d2996..262a7474d6 100644--- a/install/package.json+++ b/install/package.json@@ -104,7 +104,7 @@"nodebb-plugin-ntfy": "1.7.4","nodebb-plugin-spam-be-gone": "2.2.2","nodebb-rewards-essentials": "1.0.0",- "nodebb-theme-harmony": "1.2.62",+ "nodebb-theme-harmony": "1.2.63","nodebb-theme-lavender": "7.1.8","nodebb-theme-peace": "2.2.6","nodebb-theme-persona": "13.3.24",diff --git a/public/language/en-GB/post-queue.json b/public/language/en-GB/post-queue.jsonindex 021ed0d83f..24b33da2e6 100644--- a/public/language/en-GB/post-queue.json+++ b/public/language/en-GB/post-queue.json@@ -38,5 +38,6 @@"remove-selected": "Remove Selected","remove-selected-confirm": "Do you want to remove %1 selected posts?","bulk-accept-success": "%1 posts accepted",- "bulk-reject-success": "%1 posts rejected"+ "bulk-reject-success": "%1 posts rejected",+ "links-in-this-post": "Links in this post"}\ No newline at end of filediff --git a/public/src/client/post-queue.js b/public/src/client/post-queue.jsindex d7cfb9f230..ff5fa931d7 100644--- a/public/src/client/post-queue.js+++ b/public/src/client/post-queue.js@@ -29,8 +29,23 @@ define('forum/post-queue', [});$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');+ showLinksInPosts();};+ function showLinksInPosts() {+ $('.posts-list [data-id]').each((idx, el) => {+ const $el = $(el);+ const linkContainer = $el.find('[component="post-queue/link-container"]');+ const linkList = linkContainer.find('[component="post-queue/link-container/list"]');+ const linksInPost = $el.find('.post-content a');+ linksInPost.each((idx, link) => {+ const href = $(link).attr('href');+ linkList.append(`<li><a href="${href}">${href}</a></li>`);+ });+ linkContainer.toggleClass('hidden', !linksInPost.length);+ });+ }+function confirmReject(msg) {return new Promise((resolve) => {bootbox.confirm(msg, resolve);