fixes #449
This commit is contained in:
@@ -4,6 +4,8 @@ class FavoritesController < ApplicationController
|
||||
def index
|
||||
if params[:tags]
|
||||
redirect_to(posts_path(:tags => params[:tags]))
|
||||
elsif request.format == Mime::JS
|
||||
list_favorited_users
|
||||
else
|
||||
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page], params)
|
||||
end
|
||||
@@ -22,4 +24,9 @@ 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