Update Timeline.hs
This commit is contained in:
parent
e8d80c7377
commit
5c523c4841
@ -12,7 +12,7 @@ import Import
|
|||||||
getTimelineR :: Handler Html
|
getTimelineR :: Handler Html
|
||||||
getTimelineR = do
|
getTimelineR = do
|
||||||
(uid, user) <- requireAuthPair
|
(uid, user) <- requireAuthPair
|
||||||
posts <- runDB $ selectList [PostUserId ==. uid] [Desc PostCreated]
|
posts <- runDB $ selectList [PostAuthor ==. uid] [Desc PostCreated]
|
||||||
(postWidget, postEnctype) <- generateFormPost (postForm Nothing uid)
|
(postWidget, postEnctype) <- generateFormPost (postForm Nothing uid)
|
||||||
let userName :: Text
|
let userName :: Text
|
||||||
userName = userIdent user
|
userName = userIdent user
|
||||||
|
Loading…
Reference in New Issue
Block a user