Skip to content

Commit

Permalink
Merge pull request #447 from gabrielpoca/master
Browse files Browse the repository at this point in the history
Allow entries without an URL
  • Loading branch information
gabrielpoca committed Apr 23, 2017
2 parents 3fa4517 + 8543c92 commit 353aa93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/repositories/story_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class StoryRepository
extend UrlHelpers

def self.add(entry, feed)
entry.url = normalize_url(entry.url, feed.url)
entry.url = normalize_url(entry.url, feed.url) unless entry.url.nil?

Story.create(feed: feed,
title: sanitize(entry.title),
Expand Down

0 comments on commit 353aa93

Please sign in to comment.