planet 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,
|