We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8808e4c commit 4c83854Copy full SHA for 4c83854
src/Web/Offset/Feed.hs
@@ -169,11 +169,11 @@ getAuthorViaReq wp v =
169
170
getAuthorsViaReq :: Wordpress b -> Object -> IO [WPPerson]
171
getAuthorsViaReq wp v =
172
- do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [T.Text]
+ do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [Int]
173
case mAuthorId of
174
Nothing -> return []
175
Just authorIds ->
176
- do let authList = map (\id -> ("include[]", id)) authorIds
+ do let authList = map (\id -> ("include[]", tshow id)) authorIds
177
eRespError <- cachingGetRetry wp (EndpointKey ("wp/v2/authors") authList)
178
case eRespError of
179
Left _ -> return []
0 commit comments