<%- include('partials/post_template', { post: post, reply: false, pid: pid, yeah: true }); %>
<% replies.forEach(function(post) { %>
<%- include('partials/post_template', { post: post, reply: true, pid: pid }); %>
<% }); %>
<% if((
(community.permissions.open && community.type < 2) || (community.admins && community.admins.indexOf(pid) !==-1) ||
(pnid.accessLevel >= community.permissions.minimum_new_comment_access_level)
) && userSettings.account_status === 0) {%>
<%- include('partials/new_post', { pid, lang, id: post.community_id, name: post.screen_name, url: `/posts/${post.id}/new`, show: 'post', message_pid: '' }); %>
<%}%>