changes
This commit is contained in:
@@ -24,11 +24,7 @@ class ArtistsController < ApplicationController
|
||||
|
||||
def show
|
||||
@artist = Artist.find(params[:id])
|
||||
|
||||
if @artist
|
||||
@posts = Danbooru.config.select_posts_visible_to_user(CurrentUser.user, Post.tag_match(@artist.name).limit(6))
|
||||
end
|
||||
|
||||
@post_set = PostSets::Artist.new(@artist)
|
||||
respond_with(@artist)
|
||||
end
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ class FavoritesController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
Post.find(params[:id]).add_favorite(CurrentUser.user)
|
||||
Post.find(params[:post_id]).add_favorite!(CurrentUser.user)
|
||||
end
|
||||
|
||||
def destroy
|
||||
Post.find(params[:id]).remove_favorite(CurrentUser.user)
|
||||
Post.find(params[:post_id]).remove_favorite!(CurrentUser.user)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user