fix #51
This commit is contained in:
parent
1c3fee8b24
commit
909d3acc6e
2 changed files with 13 additions and 11 deletions
|
@ -25,6 +25,7 @@ import Text.Markdown
|
||||||
import Yesod.Text.Markdown
|
import Yesod.Text.Markdown
|
||||||
import Yesod.RssFeed
|
import Yesod.RssFeed
|
||||||
import Yesod.AtomFeed
|
import Yesod.AtomFeed
|
||||||
|
import Control.Monad (unless)
|
||||||
|
|
||||||
getMediumR :: MediumId -> Handler Html
|
getMediumR :: MediumId -> Handler Html
|
||||||
getMediumR mediumId = do
|
getMediumR mediumId = do
|
||||||
|
@ -95,12 +96,13 @@ postMediumR mediumId = do
|
||||||
--send mail to medium owner
|
--send mail to medium owner
|
||||||
owner <- runDB $ getJust $ mediumOwner medium
|
owner <- runDB $ getJust $ mediumOwner medium
|
||||||
link <- ($ MediumR (commentOrigin temp)) <$> getUrlRender
|
link <- ($ MediumR (commentOrigin temp)) <$> getUrlRender
|
||||||
|
unless (userId == mediumOwner medium) $
|
||||||
sendMail (userEmail owner) (userSl `T.append` " commented on your medium")
|
sendMail (userEmail owner) (userSl `T.append` " commented on your medium")
|
||||||
[shamlet|
|
[shamlet|
|
||||||
<h1>Hello #{userSlug owner}
|
<h1>Hello #{userSlug owner}
|
||||||
<p>#{userSl} commented on your medium #{mediumTitle medium}:
|
<p>#{userSl} commented on your medium #{mediumTitle medium}:
|
||||||
<p>#{commentContent temp}
|
<p>#{commentContent temp}
|
||||||
<p>To follow the comment thread follow
|
<p>To read the comment thread follow
|
||||||
<a href=#{link}>
|
<a href=#{link}>
|
||||||
this link
|
this link
|
||||||
.
|
.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: eidolon
|
name: eidolon
|
||||||
version: 0.1.9.3
|
version: 0.1.10.0
|
||||||
synopsis: Image gallery in Yesod
|
synopsis: Image gallery in Yesod
|
||||||
homepage: https://eidolon.nek0.eu
|
homepage: https://eidolon.nek0.eu
|
||||||
license: AGPL-3
|
license: AGPL-3
|
||||||
|
|
Loading…
Reference in a new issue