Fix being unable to see profiles when unauth
This commit is contained in:
parent
0ea897b8bb
commit
dd5ca15fa2
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class Party < ApplicationRecord
|
|||
attr_accessor :favorited
|
||||
|
||||
def is_favorited(user)
|
||||
user.favorite_parties.include? self
|
||||
user.favorite_parties.include? self if user
|
||||
end
|
||||
|
||||
def is_remix
|
||||
|
|
|
|||
Loading…
Reference in a new issue