mirror of
https://github.com/neocities/neocities.git
synced 2025-08-01 23:31:52 +02:00
limit on comments per day to prevent spam
This commit is contained in:
parent
92abcd6a49
commit
d220d73b0c
2 changed files with 17 additions and 1 deletions
|
@ -83,7 +83,11 @@
|
|||
|
||||
<% unless current_site.commenting_allowed? %>
|
||||
<p class="comment-policy">
|
||||
To prevent spam, you cannot comment until you have updated your site <strong><%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> times</strong> (on <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> separate days), and your account is one week old. While waiting, now is a great time to <a href="/dashboard">start building your awesome site!</a>
|
||||
<% if current_site.commenting_too_much? %>
|
||||
To prevent spam, we have a <%= Site::MAX_COMMENTS_PER_DAY %> comment per day limit. Please try commenting again tomorrow!
|
||||
<% else %>
|
||||
To prevent spam, you cannot comment until you have updated your site <strong><%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> times</strong> (on <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> separate days), and your account is one week old. While waiting, now is a great time to <a href="/dashboard">start building your awesome site!</a>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue