yesod-comments-0.3.4: A generic comments interface for a Yesod application
Yesod.Comments.Filters
Contents
Description
Synopsis
applyFilters :: Yesod m => [Comment -> GHandler s m Bool] -> Comment -> GHandler s m BoolSource
Apply each filter a given list, return True if the Comment matches any one filter
blacklistFile :: Yesod m => FilePath -> Comment -> GHandler s m BoolSource
Read IPs from a file, one per line, return True if the comment's IP matches one in the file