mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 14:05:59 +01:00
Negate empty theme check
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
e95ae7b12e
commit
1c18b966db
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class UserController < ApplicationController
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue