avatars now never expire and should be loaded from cache

This commit is contained in:
nek0 2015-09-16 18:47:13 +02:00
parent 0689cd76b7
commit b7a994ea08

View file

@ -125,6 +125,7 @@ generateThumb raw =
getGetAvatarR :: AvatarId -> Handler TypedContent getGetAvatarR :: AvatarId -> Handler TypedContent
getGetAvatarR aId = do getGetAvatarR aId = do
neverExpires
avatar <- runDB $ get404 aId avatar <- runDB $ get404 aId
return $ TypedContent typePng $ toContent $ avatarData avatar return $ TypedContent typePng $ toContent $ avatarData avatar