diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb index 6dce03186..bc360952e 100644 --- a/app/controllers/favorites_controller.rb +++ b/app/controllers/favorites_controller.rb @@ -7,6 +7,7 @@ class FavoritesController < ApplicationController redirect_to(posts_path(:tags => params[:tags])) else user_id = params[:user_id] || CurrentUser.user.id + @user = User.find(user_id) @favorite_set = PostSets::Favorite.new(user_id, params[:page], params) respond_with(@favorite_set.posts) do |format| format.xml do diff --git a/app/views/favorites/index.html.erb b/app/views/favorites/index.html.erb index 4814bc178..b3afcf927 100644 --- a/app/views/favorites/index.html.erb +++ b/app/views/favorites/index.html.erb @@ -25,7 +25,7 @@ <% content_for(:page_title) do %> - Favorites - <%= CurrentUser.name %> - <%= Danbooru.config.app_name %> + Favorites - <%= @user.pretty_name %> - <%= Danbooru.config.app_name %> <% end %> <%= render "posts/partials/common/secondary_links" %>