mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +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
|
@ -13,9 +13,10 @@ post '/event/:event_id/comment' do |event_id|
|
|||
|
||||
site = event.site
|
||||
|
||||
if site.is_blocking?(current_site) ||
|
||||
if(site.is_blocking?(current_site) ||
|
||||
site.profile_comments_enabled == false ||
|
||||
current_site.commenting_allowed? == false
|
||||
current_site.commenting_allowed? == false ||
|
||||
(current_site.is_a_jerk? && event.site_id != current_site.id && !site.is_following?(current_site)))
|
||||
return {result: 'error'}.to_json
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue