diff --git a/build/embed.js b/build/embed.js index 2736931..cd753eb 100644 --- a/build/embed.js +++ b/build/embed.js @@ -166,7 +166,7 @@ __p += '\n ' + 'approval' + ((__t = ( !data.user.admin ? ' by the site owner' : '')) == null ? '' : __t) + '.\n \n '; - } else { + } else if (data.user) { __p += '\n \n '; diff --git a/src/embed/comments.jst.html b/src/embed/comments.jst.html index 1d5f577..7ed4ba9 100644 --- a/src/embed/comments.jst.html +++ b/src/embed/comments.jst.html @@ -23,7 +23,7 @@ <% }); } %> <%= data.user.admin ? 'This' : 'Your' %> comment is still waiting for <%= data.user.admin ? 'your ' : '' %>approval<%= !data.user.admin ? ' by the site owner' : ''%>. - <% } else { %> + <% } else if (data.user) { %> <% } %> <% if (data.replies[comment.id]) {