mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 09:34:57 +02:00
better tos issue reporting, and a threshold for being considered abusive in
comments
This commit is contained in:
parent
4dc613e27a
commit
e554666fc5
4 changed files with 15 additions and 6 deletions
|
@ -129,11 +129,12 @@ post '/site/:username/comment' do |username|
|
|||
|
||||
site = Site[username: username]
|
||||
|
||||
if(site.profile_comments_enabled == false ||
|
||||
if site.profile_comments_enabled == false ||
|
||||
params[:message].empty? ||
|
||||
site.is_blocking?(current_site) ||
|
||||
current_site.is_blocking?(site) ||
|
||||
current_site.commenting_allowed? == false)
|
||||
current_site.commenting_allowed? == false ||
|
||||
(current_site.is_a_jerk? && site.id != current_site.id && !site.is_following?(current_site))
|
||||
redirect request.referrer
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue