fixes #1430
This commit is contained in:
@@ -6,6 +6,8 @@ class FavoritesController < ApplicationController
|
|||||||
redirect_to(posts_path(:tags => params[:tags]))
|
redirect_to(posts_path(:tags => params[:tags]))
|
||||||
elsif request.format == Mime::JS
|
elsif request.format == Mime::JS
|
||||||
list_favorited_users
|
list_favorited_users
|
||||||
|
elsif params[:user_id]
|
||||||
|
@favorite_set = PostSets::Favorite.new(User.find(params[:user_id]), params[:page], params)
|
||||||
else
|
else
|
||||||
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page], params)
|
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page], params)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user