% post, content = post_and_content if local_assigns.key?(:post_and_content) %> <% blocked_post = user_signed_in? && post.user.present? && post.user.blocked_by?(current_user) %> <% # Mute the post if it's one line that starts with ( and ends with ) muted_post = post.present? && post.to_model.content.split("\n").reject(&:empty?).all? { |paragraph| paragraph.strip.start_with?('(') && paragraph.strip.end_with?(')') } muted_post_classes = 'muted-thredded-post' %> <% if blocked_post %>
<%= t 'thredded.posts.pending_moderation_notice' %>
<% elsif post.blocked? && post.can_moderate? %><%= render 'thredded/shared/content_moderation_blocked_state', moderation_record: post.last_moderation_record %>
<% end %> <% end %> <% end %>