Skip to content

Commit

Permalink
give the author a different message with link to the spam policy
Browse files Browse the repository at this point in the history
  • Loading branch information
cellio committed Jan 21, 2025
1 parent 680ae22 commit 1e1bbea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/posts/_expanded.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,13 @@

<% if post.spam_flag_pending? && user_signed_in? %>
<div class="notice has-margin-2">
<% if post.user == current_user %>
<p>Your post has been flagged by members of our community. Please review our <a href="/help/spam">guidelines for promotional content</a>.</p>
<% else %>
<p><strong>Possible spam:</strong> this post has pending flags for spam. Be careful when following links.</p>
<% end %>
</div>
<% end %>

<% if post_type.is_public_editable && post.pending_suggested_edit? %>
<% if check_your_post_privilege(post, 'edit_posts') %>
<div class="notice h-p-2">
Expand Down

0 comments on commit 1e1bbea

Please sign in to comment.