Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support blog.com and titleless posts

  • Loading branch information...
commit 2327d7c2fbd61889b6bb1a0366a478e94f496320 1 parent 30eb9dd
Pablo Astigarraga authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/planet.rb
7 lib/planet.rb
View
@@ -125,9 +125,14 @@ def fetch
abort "=> No content found on entry"
end
+ title = if !entry.title.nil?
+ entry.title.sanitize
+ else
+ self.name
+ end
self.posts << @post = Post.new(
- title: entry.title.sanitize,
+ title: title,
content: content,
date: entry.published,
url: self.url + entry.url,
Please sign in to comment.
Something went wrong with that request. Please try again.