Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing atom feed renderer for empty post lists. #2028

Merged
merged 1 commit into from Sep 6, 2015
Merged

Conversation

felixfontein
Copy link
Contributor

When the atom feed renderer is called with a empty post list, it crashes with an exception as it tries to call formatted_date of the last post object. Since it doesn't care about the post object, I moved most of the code of Post.formatted_date to utils and left a wrapper in Post which substitutes the post's date if it wasn't given.

@da2x
Copy link
Contributor

da2x commented Sep 6, 2015

LGTM.

Kwpolska added a commit that referenced this pull request Sep 6, 2015
Fixing atom feed renderer for empty post lists.
@Kwpolska Kwpolska merged commit f68bf4f into master Sep 6, 2015
@Kwpolska Kwpolska deleted the fix-atom-renderer branch September 6, 2015 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants