Skip to content

Commit

Permalink
Nil check for default feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Jul 31, 2023
1 parent 8aa6fe7 commit c973105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/podcast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ def base_private_url
end

def published_url(include_token = nil)
default_feed.published_url(include_token)
default_feed&.published_url(include_token)
end

def public_url(include_token = nil)
default_feed.public_url(include_token)
default_feed&.public_url(include_token)
end

def itunes_type
Expand Down

0 comments on commit c973105

Please sign in to comment.