Skip to content

Commit

Permalink
Negate empty theme check
Browse files Browse the repository at this point in the history
Co-authored-by: Georg Gadinger <[email protected]>
  • Loading branch information
raccube and nilsding committed Nov 3, 2023
1 parent be73067 commit 72d3c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def show

def show_theme
theme = Theme.where(user: User.where("LOWER(screen_name) = ?", params[:username].downcase).select(:id)).first
return head :no_content if theme.nil?
return head :no_content unless theme

expires_in 3.months
return if fresh_when theme, public: true
Expand Down

0 comments on commit 72d3c87

Please sign in to comment.