planet 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/planet/version.rb +1 -1
- data/lib/planet.rb +6 -1
- metadata +1 -1
data/lib/planet/version.rb
CHANGED
data/lib/planet.rb
CHANGED
@@ -125,9 +125,14 @@ class Planet
|
|
125
125
|
abort "=> No content found on entry"
|
126
126
|
end
|
127
127
|
|
128
|
+
title = if !entry.title.nil?
|
129
|
+
entry.title.sanitize
|
130
|
+
else
|
131
|
+
self.name
|
132
|
+
end
|
128
133
|
|
129
134
|
self.posts << @post = Post.new(
|
130
|
-
title:
|
135
|
+
title: title,
|
131
136
|
content: content,
|
132
137
|
date: entry.published,
|
133
138
|
url: self.url + entry.url,
|