diff --git a/src/disqus.js b/src/disqus.js index 956d110..442b67f 100644 --- a/src/disqus.js +++ b/src/disqus.js @@ -239,6 +239,7 @@ * disqusjs.config,api - Where to get data * disqusjs.config.apikey - The apikey used to request Disqus API * disqusjs.config.admin - The disqus forum admin username + * disqusjs.config.adminLabel - The disqus moderator badge text * * DisqusJS Info * disqusjs.page.id = The thread id, used at next API call @@ -549,6 +550,10 @@ renderComment = (data) => { comment.authorEl = `${comment.author.name}` } + if (comment.author.name === disqusjs.config.admin) { + comment.authorEl += `${disqusjs.config.adminLabel}` + } + s.nesting = nesting + 1 html += `