yesod-comments-0.8.2: A generic comments interface for a Yesod application

Portabilityunportable
Stabilityunstable
Maintainerpbrisbin@gmail.com
Safe HaskellNone

Yesod.Comments.Utils

Description

 

Synopsis

Documentation

commentUserDetails :: YesodComments m => Comment -> GHandler s m UserDetailsSource

Map the commenter's id to user details or return defaults.

currentUserDetails :: YesodComments m => GHandler s m (Maybe UserDetails)Source

Returns Nothing if user is not authenticated

requireUserDetails :: YesodComments m => GHandler s m UserDetailsSource

Halts with permissionDenied if user is not authenticated

defaultUserDetails :: Comment -> UserDetailsSource

For a comment that was not authenticated or cannot be mapped, the default details are the id and email stored directly on the comment.

gravatar :: Int -> Text -> StringSource

Given pixel size and email, return the gravatar url