Update UserTimeline.hs
This commit is contained in:
parent
5c523c4841
commit
afe669a2ba
@ -11,7 +11,7 @@ import Import
|
||||
getUserTimelineR :: UserId -> Handler Html
|
||||
getUserTimelineR uid = do
|
||||
mayUser <- runDB $ get uid
|
||||
posts <- runDB $ selectList [PostUserId ==. uid] [Desc PostCreated]
|
||||
posts <- runDB $ selectList [PostAuthor ==. uid] [Desc PostCreated]
|
||||
let userName :: Text
|
||||
userName = maybe "UnkownUser" userIdent mayUser
|
||||
defaultLayout $ do
|
||||
|
Loading…
Reference in New Issue
Block a user