mirror of
https://github.com/neocities/neocities.git
synced 2025-07-26 04:18:22 +02:00
Add (design challenged) comment bar to news feed
This commit is contained in:
parent
882d2fb4b2
commit
411bf26347
4 changed files with 33 additions and 30 deletions
|
@ -134,7 +134,7 @@ post '/site/:username/comment' do |username|
|
|||
site.is_blocking?(current_site) ||
|
||||
current_site.is_blocking?(site) ||
|
||||
current_site.commenting_allowed? == false)
|
||||
redirect "/site/#{username}"
|
||||
redirect request.referrer
|
||||
end
|
||||
|
||||
site.add_profile_comment(
|
||||
|
@ -142,7 +142,7 @@ post '/site/:username/comment' do |username|
|
|||
message: params[:message]
|
||||
)
|
||||
|
||||
redirect "/site/#{username}"
|
||||
redirect request.referrer
|
||||
end
|
||||
|
||||
get '/site/:username/tip' do |username|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue