Skip to content

Commit 4c83854

Browse files
committed
Ids are Ints
1 parent 8808e4c commit 4c83854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Web/Offset/Feed.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ getAuthorViaReq wp v =
169169

170170
getAuthorsViaReq :: Wordpress b -> Object -> IO [WPPerson]
171171
getAuthorsViaReq wp v =
172-
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [T.Text]
172+
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [Int]
173173
case mAuthorId of
174174
Nothing -> return []
175175
Just authorIds ->
176-
do let authList = map (\id -> ("include[]", id)) authorIds
176+
do let authList = map (\id -> ("include[]", tshow id)) authorIds
177177
eRespError <- cachingGetRetry wp (EndpointKey ("wp/v2/authors") authList)
178178
case eRespError of
179179
Left _ -> return []

0 commit comments

Comments
 (0)