mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
Code to display tips submitted on news feed
This commit is contained in:
parent
621e45b6a2
commit
cc07e90b44
11 changed files with 131 additions and 12 deletions
|
@ -146,13 +146,6 @@ post '/site/:username/comment' do |username|
|
|||
redirect request.referrer
|
||||
end
|
||||
|
||||
get '/site/:username/tip' do |username|
|
||||
@site = Site[username: username]
|
||||
redirect request.referrer unless @site.tipping_enabled?
|
||||
@title = "Tip #{@site.title}"
|
||||
erb :'tip'
|
||||
end
|
||||
|
||||
post '/site/:site_id/toggle_follow' do |site_id|
|
||||
require_login
|
||||
content_type :json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue