Merge branch 'master' of https://github.com/r888888888/danbooru
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class PostsController < ApplicationController
|
||||
before_filter :member_only, :except => [:show, :show_seq, :index]
|
||||
before_filter :member_only, :except => [:show, :show_seq, :index, :home]
|
||||
before_filter :builder_only, :only => [:copy_notes]
|
||||
after_filter :save_recent_tags, :only => [:update]
|
||||
respond_to :html, :xml, :json
|
||||
@@ -98,6 +98,14 @@ class PostsController < ApplicationController
|
||||
@error = x
|
||||
end
|
||||
|
||||
def home
|
||||
if CurrentUser.user.is_anonymous?
|
||||
redirect_to intro_explore_posts_path
|
||||
else
|
||||
redirect_to posts_path(:tags => params[:tags])
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def tag_query
|
||||
params[:tags] || (params[:post] && params[:post][:tags])
|
||||
|
||||
Reference in New Issue
Block a user