<% triggers = Documents::Analysis::ContentService.adult_content?(@list, post.content) %>
<% next unless triggers.any? %>
<%= post.postable.title %>
(<%= link_to post.postable.slug, '/forum/private-topics/' + post.postable.slug %>)
<%= post.postable.created_at.strftime("%m/%d/%Y") %> (<%= time_ago_in_words post.postable.created_at %> ago)
|
<% triggers.each do |trigger| %>
<%= trigger %>
<% end %>
|
<%
content = post.content
triggers.each do |trigger|
content.gsub!(trigger, "#{trigger}")
end
%>
<%= content.html_safe %>
|
<% end %>