Skip to content

Add ability to create feeds#48

Merged
emhoracek merged 8 commits intomasterfrom
rss-feeds
May 15, 2017
Merged

Add ability to create feeds#48
emhoracek merged 8 commits intomasterfrom
rss-feeds

Conversation

@emhoracek
Copy link
Member

@emhoracek emhoracek commented May 11, 2017

Still missing: Good uids for entries, probably others...

Also: This currently expects that there is an "authors" field with multiple authors, which isn't true unless you're using guest-authors. Need some way to allow both options.

Still missing: Good uids for entries, probably others...

Also: This currently expects that there is an "authors" field with multiple authors, which isn't true unless you're using guest-authors. Need some way to allow both ooptions.
spec/Common.hs Outdated
, "departments" .= [ object [ "name" .= ("some department" :: T.Text)]]
, "department" .= ("15" :: T.Text)
, "authors" .= [ object ["name" .= ("Emma Goldman" :: T.Text)]]
, "format" .= ("standard" :: T.Text) ]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added fields expected by the feed: "modified", "guid", "authors" -- latter two are temporary I think. The entry id should be generated to point to the Offset server, not the WordPress server (although it doesn't matter if it's a real, clickable URL). The "authors" field is there because Jacobin needs multiple authors, but we need to support at least both guest-authors and the default user authors. (The "format" field is a mistake.)

Right resp ->
case decode resp of
Just posts -> return posts
Nothing -> error $ "Couldn't decode: " <> T.unpack resp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to figure out if it's okay to throw errors here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually there's dubious error-throwing all over the place

@emhoracek emhoracek requested a review from dhartunian May 15, 2017 15:55
@emhoracek emhoracek merged commit d98e2bd into master May 15, 2017
@emhoracek emhoracek deleted the rss-feeds branch May 15, 2017 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants