fixes #1403
This commit is contained in:
@@ -4,8 +4,6 @@ class FavoritesController < ApplicationController
|
||||
def index
|
||||
if params[:tags]
|
||||
redirect_to(posts_path(:tags => params[:tags]))
|
||||
elsif request.format == Mime::JS
|
||||
list_favorited_users
|
||||
elsif params[:user_id]
|
||||
@favorite_set = PostSets::Favorite.new(User.find(params[:user_id]), params[:page], params)
|
||||
else
|
||||
@@ -26,9 +24,4 @@ class FavoritesController < ApplicationController
|
||||
@post = Post.find(params[:id])
|
||||
@post.remove_favorite!(CurrentUser.user)
|
||||
end
|
||||
|
||||
def list_favorited_users
|
||||
@post = Post.find(params[:post_id])
|
||||
render :action => "list_favorited_users"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user