Update Timeline.hs

This commit is contained in:
BergesJ 2017-07-05 00:13:31 +03:00 committed by GitHub
parent e8d80c7377
commit 5c523c4841
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import Import
getTimelineR :: Handler Html
getTimelineR = do
(uid, user) <- requireAuthPair
posts <- runDB $ selectList [PostUserId ==. uid] [Desc PostCreated]
posts <- runDB $ selectList [PostAuthor ==. uid] [Desc PostCreated]
(postWidget, postEnctype) <- generateFormPost (postForm Nothing uid)
let userName :: Text
userName = userIdent user